Skip to content

Commit

Permalink
fix rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
FinnIckler committed Jan 26, 2025
1 parent 7cd2ef7 commit 8123f67
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models/competition.rb
Original file line number Diff line number Diff line change
Expand Up @@ -403,9 +403,11 @@ def report_posted?
end

def events_held?(desired_event_ids)
# rubocop:disable Style/BitwisePredicate
# We have to shut up Rubocop here because otherwise it thinks that
# `desired_event_ids` are integers which are being compared to a bit mask
(desired_event_ids & self.event_ids) == desired_event_ids
# rubocop:disable Style/BitwisePredicate
end

def enforces_qualifications?
Expand Down

0 comments on commit 8123f67

Please sign in to comment.