Skip to content

Commit

Permalink
gopls/internal/lsp/cache: address additional comments from CL 553095
Browse files Browse the repository at this point in the history
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 <adonovan@google.com>
Auto-Submit: Alan Donovan <adonovan@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
  • Loading branch information
findleyr authored and gopherbot committed Jan 5, 2024
1 parent 920d665 commit 3e8a0a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gopls/internal/lsp/cache/view.go
Original file line number Diff line number Diff line change
Expand Up @@ -426,8 +426,8 @@ func viewEnv(v *View) string {
v.root.Path(),
strings.TrimRight(v.folder.Env.GoVersionOutput, "\n"),
v.folder.Options.BuildFlags,
*v.snapshot.view.folder.Env,
v.snapshot.view.envOverlay,
*v.folder.Env,
v.envOverlay,
)

return buf.String()
Expand Down

0 comments on commit 3e8a0a3

Please sign in to comment.