Skip to content

Commit ba65c57

Browse files
committed
Style/OrAssignment
1 parent 65864ad commit ba65c57

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

.rubocop.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ AllCops:
77
TargetRubyVersion: 2.6
88

99
# Disable cops that are not consistently available across all Ruby versions
10-
Style/OrAssignment:
11-
Enabled: false
12-
1310
Layout/SpaceInsideHashLiteralBraces:
1411
Enabled: false
1512

lib/secure_headers.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def raise_on_unknown_target(target)
208208

209209
def config_and_target(request, target)
210210
config = config_for(request)
211-
target = guess_target(config) unless target
211+
target ||= guess_target(config)
212212
raise_on_unknown_target(target)
213213
[config, target]
214214
end

0 commit comments

Comments
 (0)