rubocops/class: refactor unless &&
This commit is contained in:
parent
7f32e23a65
commit
c5b8983da4
@ -86,8 +86,8 @@ module RuboCop
|
||||
return
|
||||
end
|
||||
|
||||
return unless test.body.single_line? &&
|
||||
test.body.source.to_s == "true"
|
||||
return unless test.body.single_line?
|
||||
return if test.body.source.to_s != "true"
|
||||
|
||||
problem "`test do` should contain a real test"
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user