Skip to content

Commit

Permalink
Resolve hound warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex committed Oct 24, 2023
1 parent 880af49 commit 9999629
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/forms/export.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def to_xls
repeat_depth = 1
index_mod = 1 # start at row index 1
choices_index_mod = 0
option_sets_used = Array.new
option_sets_used = []

@form.preordered_items.each_with_index do |q, i|
# did one or more groups just end?
Expand Down Expand Up @@ -116,7 +116,7 @@ def to_xls
if q.option_set_id.present?
os = OptionSet.find(q.option_set_id)
os_name = " #{os.name}"
os_already_logged = option_sets_used.include? q.option_set_id
os_already_logged = option_sets_used.include?(q.option_set_id)

# log the option set to the spreadsheet if we haven't yet
unless os_already_logged
Expand Down

0 comments on commit 9999629

Please sign in to comment.