Skip to content

Commit

Permalink
zero not a replacement for == (#341)
Browse files Browse the repository at this point in the history
  • Loading branch information
lsat12357 committed Jul 1, 2022
1 parent 90ae9c5 commit 9e07bb9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ Style/CollectionMethods:
Style/ClassAndModuleChildren:
Enabled: false

Style/NumericPredicate:
Enabled: false

Style/RedundantBegin:
Exclude:
- 'lib/tasks/preflight_tools/preflight.rake'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def log_info(object)

# for use with set on the crosswalk
def full_size_hack(object)
return nil if @result[:full_size_download_allowed].zero?
return nil if @result[:full_size_download_allowed] == 0

id = object.to_s.split(':')[2]
record = admin_set_map.select { |coll| coll[:primary_set] == id }.first
Expand Down

0 comments on commit 9e07bb9

Please sign in to comment.