Skip to content

Commit 6682176

Browse files
committed
internal/lsp: remove useless check
err must be nil, as the code checks in line 117. Change-Id: I23d87bdc9489c9ed249bfa1ac61b1ed722121c6a Reviewed-on: https://go-review.googlesource.com/c/tools/+/217402 Run-TryBot: Peter Weinberger <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Rebecca Stambler <[email protected]>
1 parent 6f24f26 commit 6682176

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

internal/lsp/cmd/definition.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,6 @@ func (d *definition) Run(ctx context.Context, args ...string) error {
134134
default:
135135
return errors.Errorf("unknown emulation for definition: %s", d.query.Emulate)
136136
}
137-
if err != nil {
138-
return err
139-
}
140137
if d.query.JSON {
141138
enc := json.NewEncoder(os.Stdout)
142139
enc.SetIndent("", "\t")

0 commit comments

Comments
 (0)