lib/spoom/sorbet/lsp/errors.rb in spoom-1.1.12 vs lib/spoom/sorbet/lsp/errors.rb in spoom-1.1.13
- old
+ new
@@ -21,11 +21,11 @@
sig { params(json: T::Hash[T.untyped, T.untyped]).returns(Diagnostics) }
def from_json(json)
Diagnostics.new(
json["uri"],
- json["diagnostics"].map { |d| Diagnostic.from_json(d) }
+ json["diagnostics"].map { |d| Diagnostic.from_json(d) },
)
end
end
sig { params(uri: String, diagnostics: T::Array[Diagnostic]).void }
@@ -52,10 +52,10 @@
sig { params(json: T::Hash[T.untyped, T.untyped]).returns(ResponseError) }
def from_json(json)
ResponseError.new(
json["code"],
json["message"],
- json["data"]
+ json["data"],
)
end
end
sig { params(code: Integer, message: String, data: T::Hash[T.untyped, T.untyped]).void }