From b99b2d090f5a4fb4b68b3283c169fb1728352825 Mon Sep 17 00:00:00 2001 From: Rebecca Stambler Date: Mon, 25 Nov 2019 14:42:09 -0500 Subject: [PATCH] internal/lsp: fix return variables for FindPosInPackage Change-Id: Icaa9595f05ab9583e60fc0392cbe21e1f20a3934 Reviewed-on: https://go-review.googlesource.com/c/tools/+/208666 Run-TryBot: Rebecca Stambler Reviewed-by: Heschi Kreinick --- internal/lsp/source/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/lsp/source/util.go b/internal/lsp/source/util.go index 8c7edbdfce8..e6accf4b3e5 100644 --- a/internal/lsp/source/util.go +++ b/internal/lsp/source/util.go @@ -425,7 +425,7 @@ func formatParams(s Snapshot, pkg Package, sig *types.Signature, qf types.Qualif } func formatFieldType(s Snapshot, srcpkg Package, obj types.Object, qf types.Qualifier) (string, error) { - file, _, pkg, err := s.View().FindPosInPackage(srcpkg, obj.Pos()) + file, pkg, err := s.View().FindPosInPackage(srcpkg, obj.Pos()) if err != nil { return "", err }