rubocops/class: refactor unless &&

This commit is contained in:
Mike McQuaid 2020-04-11 14:18:40 +01:00
parent 7f32e23a65
commit c5b8983da4
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70

View File

@ -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