mirror of
https://github.com/ruby/ruby.git
synced 2026-01-26 20:19:19 +00:00
[ruby/syntax_suggest] bundle exec standardrb --fix
https://github.com/ruby/syntax_suggest/commit/54bb8ab330
This commit is contained in:
parent
306d50811d
commit
f5efd0e743
@ -146,11 +146,7 @@ module SyntaxSuggest
|
||||
def self.valid_without?(without_lines:, code_lines:)
|
||||
lines = code_lines - Array(without_lines).flatten
|
||||
|
||||
if lines.empty?
|
||||
true
|
||||
else
|
||||
valid?(lines)
|
||||
end
|
||||
lines.empty? || valid?(lines)
|
||||
end
|
||||
|
||||
# SyntaxSuggest.invalid? [Private]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user