Skip to content

Commit 3e8a0a3

Browse files
findleyrgopherbot
authored andcommitted
gopls/internal/lsp/cache: address additional comments from CL 553095
These uses of the unnecessarily indirect v.snapshot.view were missed. Change-Id: I00d464c2fbbb1a73f95fe9f47773b6879a02c56b Reviewed-on: https://go-review.googlesource.com/c/tools/+/554058 Reviewed-by: Alan Donovan <[email protected]> Auto-Submit: Alan Donovan <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
1 parent 920d665 commit 3e8a0a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gopls/internal/lsp/cache/view.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,8 +426,8 @@ func viewEnv(v *View) string {
426426
v.root.Path(),
427427
strings.TrimRight(v.folder.Env.GoVersionOutput, "\n"),
428428
v.folder.Options.BuildFlags,
429-
*v.snapshot.view.folder.Env,
430-
v.snapshot.view.envOverlay,
429+
*v.folder.Env,
430+
v.envOverlay,
431431
)
432432

433433
return buf.String()

0 commit comments

Comments
 (0)