Skip to content

Commit 54bb8ab

Browse files
committed
bundle exec standardrb --fix
1 parent 5214638 commit 54bb8ab

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/syntax_suggest/api.rb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,7 @@ def self.record_dir(dir)
146146
def self.valid_without?(without_lines:, code_lines:)
147147
lines = code_lines - Array(without_lines).flatten
148148

149-
if lines.empty?
150-
true
151-
else
152-
valid?(lines)
153-
end
149+
lines.empty? || valid?(lines)
154150
end
155151

156152
# SyntaxSuggest.invalid? [Private]

0 commit comments

Comments
 (0)