Skip to content

Commit 60615d0

Browse files
committed
Correct Style/IfUnlessModifier
1 parent d187bb9 commit 60615d0

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

.rubocop_todo.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,6 @@ RSpec/NamedSubject:
7373
RSpec/NestedGroups:
7474
Max: 5
7575

76-
# Offense count: 1
77-
# This cop supports safe autocorrection (--autocorrect).
78-
Style/IfUnlessModifier:
79-
Exclude:
80-
- 'spec/spec_helper_acceptance_local.rb'
81-
8276
# Offense count: 1
8377
Style/MixinUsage:
8478
Exclude:

spec/spec_helper_acceptance_local.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,7 @@ def clear_temp_hieradata
120120

121121
RSpec::Matchers.define :contain_password do |password|
122122
match do |user|
123-
if password == user.encrypted_password
124-
return true
125-
end
123+
return true if password == user.encrypted_password
126124
end
127125
false
128126
end

0 commit comments

Comments
 (0)