Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Style/OrAssignment
Co-authored-by: Tobias Maier <me@tobiasmaier.info>
  • Loading branch information
rei-moo and tmaier committed Dec 12, 2025
commit 9163b25e61b6e3a487d56e1b62935643a6827a99
3 changes: 0 additions & 3 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ AllCops:
TargetRubyVersion: 2.6

# Disable cops that are not consistently available across all Ruby versions
Style/OrAssignment:
Enabled: false

Layout/SpaceInsideHashLiteralBraces:
Enabled: false

Expand Down
2 changes: 1 addition & 1 deletion lib/secure_headers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def raise_on_unknown_target(target)

def config_and_target(request, target)
config = config_for(request)
target = guess_target(config) unless target
target ||= guess_target(config)
raise_on_unknown_target(target)
[config, target]
end
Expand Down