File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ func NewServer(version string, lintRequest *utils.LintFileRequest) *ServerState
4747 lintRequest : lintRequest ,
4848 documentStore : newDocumentStore (),
4949 }
50- handler .Initialize = func (context * glsp.Context , params * protocol.InitializeParams ) (interface {} , error ) {
50+ handler .Initialize = func (context * glsp.Context , params * protocol.InitializeParams ) (any , error ) {
5151 if params .Trace != nil {
5252 protocol .SetTraceValue (* params .Trace )
5353 }
@@ -153,7 +153,7 @@ func (s *ServerState) runDiagnostic(doc *Document, notify glsp.NotifyFunc) {
153153}
154154
155155func ConvertResultsIntoDiagnostics (result * motor.RuleSetExecutionResult ) []protocol.Diagnostic {
156- var diagnostics []protocol.Diagnostic
156+ diagnostics := []protocol.Diagnostic {}
157157
158158 for _ , vacuumResult := range result .Results {
159159 diagnostics = append (diagnostics , ConvertResultIntoDiagnostic (& vacuumResult ))
You can’t perform that action at this time.
0 commit comments