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
sig { params(comment: Parser::Source::Comment).returns(T::Boolean)
sig { params(comment: Parser::Source::Comment).returns(T::Boolean) }
def disable_comment?(comment)
comment.text.start_with? "# rubocop:disable"
end
sig { params(line: String).returns(T::Boolean) }
sig { params(line: String).returns(T::Boolean) }
def comment?(line)
line.strip.start_with? "#"
end