Skip to content

Commit 4fc8185

Browse files
committed
Linting errors is solved.
1 parent 91c2852 commit 4fc8185

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/objects.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ export function isCorrect(question: Question, answer: string): boolean {
3232
* be exactly one of the options.
3333
*/
3434
export function isValid(question: Question, answer: string): boolean {
35-
if (question.type === "short_answer_question"){
36-
return true;
37-
}
38-
else if (question.type === "multiple_choice_question") {
39-
return question.options.includes(answer)}
40-
//return question.type === "short_answer_question" ? true: question.options.includes(answer)
35+
// if (question.type === "short_answer_question"){
36+
// return true;
37+
// }
38+
// else if (question.type === "multiple_choice_question") {
39+
// return question.options.includes(answer)}
40+
return question.type === "short_answer_question" ? true: question.options.includes(answer)
4141
}
4242
/**
4343
* Consumes a question and produces a string representation combining the

0 commit comments

Comments
 (0)