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