1
0
mirror of https://github.com/golang/go synced 2024-11-05 14:56:10 -07:00
go/internal/jsonrpc2
Rob Findley 9a0fabac01 internal/lsp: fix errors found by staticcheck
While experimenting with different static analysis on x/tools, I noticed
that there are many actionable diagnostics found by staticcheck. Fix the
ones that were not false positives.

Change-Id: I0b68cf1f636b57b557db879fad84fff9b7237a89
Reviewed-on: https://go-review.googlesource.com/c/tools/+/222248
Run-TryBot: Robert Findley <rfindley@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
2020-03-19 19:20:54 +00:00
..
servertest internal/jsonrpc2: add an idle timeout for stream serving 2020-02-24 23:06:35 +00:00
handler.go internal/lsp: cancel early 2019-10-22 07:49:31 +00:00
jsonrpc2_test.go internal/jsonrpc2: fix invalid invocations of Fatalf in goroutines 2020-02-05 19:51:38 +00:00
jsonrpc2.go internal/lsp: fix errors found by staticcheck 2020-03-19 19:20:54 +00:00
serve_test.go internal/jsonrpc2: add an idle timeout for stream serving 2020-02-24 23:06:35 +00:00
serve.go internal/jsonrpc2: add an idle timeout for stream serving 2020-02-24 23:06:35 +00:00
stream.go internal/lsp/lsprpc: clean up client session on disconnection 2020-02-24 23:23:05 +00:00
wire.go all: fix some staticcheck errors 2020-01-29 04:53:41 +00:00