Browse Source

refactor: lint

pull/2028/head
natdeanlewissoftwire 3 years ago
parent
commit
e532e2ca73
  1. 2
      app/models/form.rb

2
app/models/form.rb

@ -206,7 +206,6 @@ class Form
radio_questions_recalculated = routed_and_not_routed_questions_by_type(log, type: "radio")
newly_not_routed_radio_questions = radio_questions_recalculated[:not_routed].reject { |question| radio_questions[:not_routed].include?(question) }
radio_clearing_pass(log, radio_questions_recalculated[:routed], newly_not_routed_radio_questions)
end
def reset_free_user_input_questions_if_not_routed(log)
@ -250,7 +249,6 @@ class Form
end
end
def routed_and_not_routed_questions_by_type(log, type: nil, current_user: nil)
questions_by_type = if type
questions.reject { |q| q.type != type || q.disable_clearing_if_not_routed_or_dynamic_answer_options }

Loading…
Cancel
Save