Skip to content

Commit

Permalink
Fix: Removed unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
UO283615 committed Apr 28, 2024
1 parent 2abcb24 commit a21fa9b
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ public class QuestionHelper {

private QuestionHelper(){} // To hide the implicit public constructor as this is static only

private static final int MAX_DISTRACTORS = 3;

public static List<Answer> getDistractors(AnswerRepository answerRepository, Question question){
return answerRepository.findDistractors(question.getAnswerCategory().toString(), question.getLanguage(), question.getCorrectAnswer().getText(), MAX_DISTRACTORS);
return answerRepository.findDistractors(question.getAnswerCategory().toString(), question.getLanguage(), question.getCorrectAnswer().getText(), 3);
}
}

0 comments on commit a21fa9b

Please sign in to comment.