add missing }

This commit is contained in:
Kristján Oddsson 2025-01-31 20:20:00 +01:00
parent 4acdcfcb37
commit d7af1e3527

View File

@ -21,12 +21,12 @@ module RuboCop
private private
sig { params(comment: Parser::Source::Comment).returns(T::Boolean) sig { params(comment: Parser::Source::Comment).returns(T::Boolean) }
def disable_comment?(comment) def disable_comment?(comment)
comment.text.start_with? "# rubocop:disable" comment.text.start_with? "# rubocop:disable"
end end
sig { params(line: String).returns(T::Boolean) } sig { params(line: String).returns(T::Boolean) }
def comment?(line) def comment?(line)
line.strip.start_with? "#" line.strip.start_with? "#"
end end