Skip to content

Commit

Permalink
Style/SafeNavigationChainLength && Lint/RedundantSafeNavigation: Redu…
Browse files Browse the repository at this point in the history
…ndant safe navigation detected, use . instead
  • Loading branch information
LucienMLD committed Dec 16, 2024
1 parent 7e8d5d2 commit f2eb615
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 @@ -1280,6 +1280,9 @@ Style/RescueStandardError:
Style/ReturnNil:
Enabled: false

Style/SafeNavigationChainLength:
Enabled: false

Style/Sample:
Enabled: true

Expand Down
2 changes: 1 addition & 1 deletion app/models/solicitation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ def doublon_solicitations
end

def from_intermediary?
facility = self&.facility
facility = self.facility
return false if facility.nil?
intermediary_naf_codes = %w[7022Z 6920Z 9411Z 8299Z 7021Z 9499Z 8413Z]
intermediary_naf_codes.include?(facility.naf_code&.delete('.'))
Expand Down

0 comments on commit f2eb615

Please sign in to comment.