rubocop: require braces for Sorbet sig

This commit is contained in:
Seeker
2021-01-18 16:52:45 -08:00
parent 20eaf43836
commit fbafaff4fe
26 changed files with 96 additions and 92 deletions
+2 -2
View File
@@ -31,12 +31,12 @@ module GitHub
path.realpath.relative_path_from(workspace)
end
sig do
sig {
params(
type: Symbol, message: String,
file: T.nilable(T.any(String, Pathname)), line: T.nilable(Integer), column: T.nilable(Integer)
).void
end
}
def initialize(type, message, file: nil, line: nil, column: nil)
raise ArgumentError, "Unsupported type: #{type.inspect}" unless [:warning, :error].include?(type)