Skip to content

Commit

Permalink
Revert "Fix attempt to get length of local diagnostics (a nil value)"
Browse files Browse the repository at this point in the history
This reverts commit f68ef7d.
  • Loading branch information
x committed Jan 1, 2024
1 parent 489b3c5 commit e67500d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions proto/view/view.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,7 @@ func (v *view) sendDiagnose(document_uri defines.DocumentUri, err error) {
},
}
defer func() {
if len(res.Params.Diagnostics) > 0 {
_ = ViewManager.Server.SendMsg(res)
}
ViewManager.Server.SendMsg(res)
}()
if err == nil {
return
Expand Down

0 comments on commit e67500d

Please sign in to comment.