From a21fa9ba489f08877a998e8f89b67374c237a1af Mon Sep 17 00:00:00 2001 From: Diego Villanueva Date: Sun, 28 Apr 2024 20:19:04 +0200 Subject: [PATCH] Fix: Removed unused variable --- .../lab/en2b/quizapi/questions/question/QuestionHelper.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/api/src/main/java/lab/en2b/quizapi/questions/question/QuestionHelper.java b/api/src/main/java/lab/en2b/quizapi/questions/question/QuestionHelper.java index f5c20c61..9a42bf82 100644 --- a/api/src/main/java/lab/en2b/quizapi/questions/question/QuestionHelper.java +++ b/api/src/main/java/lab/en2b/quizapi/questions/question/QuestionHelper.java @@ -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 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); } }