From 077b94766ee3f53f6e354876d04519914d2f98ef Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Thu, 7 Mar 2024 10:43:31 +0100 Subject: [PATCH] Fix style --- pkg/filesystem/virtual/bazel_output_service_directory.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pkg/filesystem/virtual/bazel_output_service_directory.go b/pkg/filesystem/virtual/bazel_output_service_directory.go index e2e1245..c1ee0ec 100644 --- a/pkg/filesystem/virtual/bazel_output_service_directory.go +++ b/pkg/filesystem/virtual/bazel_output_service_directory.go @@ -606,11 +606,10 @@ func (d *BazelOutputServiceDirectory) BatchStat(ctx context.Context, request *ba } for _, statPath := range request.Paths { statWalker := statWalker{ - stack: util.NewNonEmptyStack[virtual.PrepopulatedDirectory](outputPathState.rootDirectory), - stat: &bazeloutputservice.BatchStatResponse_Stat{}, + digestFunction: &buildState.digestFunction, + stack: util.NewNonEmptyStack[virtual.PrepopulatedDirectory](outputPathState.rootDirectory), + stat: &bazeloutputservice.BatchStatResponse_Stat{}, } - statWalker.digestFunction = &buildState.digestFunction - resolvedPath, scopeWalker := path.EmptyBuilder.Join( buildState.scopeWalkerFactory.New(path.NewLoopDetectingScopeWalker(&statWalker))) if err := path.Resolve(statPath, scopeWalker); err == syscall.ENOENT {