From c8ee9814ef38ce7d26a459760e510dba2006f15f Mon Sep 17 00:00:00 2001 From: baarkerlounger Date: Mon, 7 Feb 2022 12:27:32 +0000 Subject: [PATCH] Rubocop --- app/helpers/check_answers_helper.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/helpers/check_answers_helper.rb b/app/helpers/check_answers_helper.rb index 8828205c1..afa95069b 100644 --- a/app/helpers/check_answers_helper.rb +++ b/app/helpers/check_answers_helper.rb @@ -12,10 +12,6 @@ module CheckAnswersHelper end def get_answer_label(question, case_log) - if question.answer_label(case_log).present? - question.answer_label(case_log) - else - "You didn’t answer this question".html_safe - end + question.answer_label(case_log).presence || "You didn’t answer this question".html_safe end end