style: fix linting issues met ESLint
This commit is contained in:
parent
b5390258e3
commit
e78849f568
21 changed files with 64 additions and 116 deletions
|
@ -45,7 +45,7 @@ export async function getQuestion(questionId: QuestionId): Promise<QuestionDTO |
|
|||
const question = await fetchQuestion(questionId);
|
||||
|
||||
if (!question)
|
||||
return null
|
||||
{return null}
|
||||
|
||||
return mapToQuestionDTO(question);
|
||||
}
|
||||
|
@ -55,17 +55,17 @@ export async function getAnswersByQuestion(questionId: QuestionId, full: boolean
|
|||
const question = await fetchQuestion(questionId);
|
||||
|
||||
if (!question)
|
||||
return [];
|
||||
{return [];}
|
||||
|
||||
const answers: Answer[] = await answerRepository.findAllAnswersToQuestion(question);
|
||||
|
||||
if (!answers)
|
||||
return []
|
||||
{return []}
|
||||
|
||||
const answersDTO = answers.map(mapToAnswerDTO);
|
||||
|
||||
if (full)
|
||||
return answersDTO
|
||||
{return answersDTO}
|
||||
|
||||
return answersDTO.map(mapToAnswerId);
|
||||
}
|
||||
|
@ -94,7 +94,7 @@ export async function deleteQuestion(questionId: QuestionId) {
|
|||
const question = await fetchQuestion(questionId);
|
||||
|
||||
if (!question)
|
||||
return null
|
||||
{return null}
|
||||
|
||||
try {
|
||||
await questionRepository.removeQuestionByLearningObjectAndSequenceNumber(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue