Skip to content

Commit

Permalink
fix(lint): skips else for return (#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
froehlichcr authored Oct 18, 2021
1 parent fa51c4a commit 3218b81
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/composable/Questionnaire.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,10 +266,8 @@ export class Questionnaire implements IQuestionnaire {
if (this.branches.length) {
const question = step as IQuestion;
return this.getBranchQuestions(question);
} else {
return this.getQuestionsWithoutBranches();
}

return this.getQuestionsWithoutBranches();
}

/**
Expand All @@ -295,8 +293,8 @@ export class Questionnaire implements IQuestionnaire {
return (
this.steps
.filter((q) => isEnum(QUESTION_TYPE, q.type))
.map(q => q.id)
)
.map((q) => q.id)
);
}

/**
Expand Down

0 comments on commit 3218b81

Please sign in to comment.