From 3e8a0a3b0845dc1af9def080412d0a11d11a10d6 Mon Sep 17 00:00:00 2001 From: Rob Findley Date: Fri, 5 Jan 2024 10:16:51 -0500 Subject: [PATCH] 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 Auto-Submit: Alan Donovan LUCI-TryBot-Result: Go LUCI --- gopls/internal/lsp/cache/view.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gopls/internal/lsp/cache/view.go b/gopls/internal/lsp/cache/view.go index 49fa6988767..0b1e1dbf505 100644 --- a/gopls/internal/lsp/cache/view.go +++ b/gopls/internal/lsp/cache/view.go @@ -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()