We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65864ad commit ba65c57Copy full SHA for ba65c57
.rubocop.yml
@@ -7,9 +7,6 @@ AllCops:
7
TargetRubyVersion: 2.6
8
9
# Disable cops that are not consistently available across all Ruby versions
10
-Style/OrAssignment:
11
- Enabled: false
12
-
13
Layout/SpaceInsideHashLiteralBraces:
14
Enabled: false
15
lib/secure_headers.rb
@@ -208,7 +208,7 @@ def raise_on_unknown_target(target)
208
209
def config_and_target(request, target)
210
config = config_for(request)
211
- target = guess_target(config) unless target
+ target ||= guess_target(config)
212
raise_on_unknown_target(target)
213
[config, target]
214
end
0 commit comments