Skip to content

Commit

Permalink
fix rubocop issue
Browse files Browse the repository at this point in the history
  • Loading branch information
querenker committed Sep 15, 2017
1 parent c07dc27 commit d8e2bf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/events_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ def add_event_query_conditions(query)
def filter_application_letters(application_letters)
application_letters = application_letters.to_a
filters = (params[:filter] || {}).select { |_k, v| v == '1' }.transform_keys(&:to_s)
if !filters.empty? # skip filtering if no filters have been set
unless filters.empty? # skip filtering if no filters have been set
application_letters.keep_if { |l| filters.include?(l.status) }
end
application_letters
Expand Down

0 comments on commit d8e2bf7

Please sign in to comment.