diff --git a/src/Runner.Worker/Expressions/HashFilesFunction.cs b/src/Runner.Worker/Expressions/HashFilesFunction.cs index 259a455b8..a4b49d268 100644 --- a/src/Runner.Worker/Expressions/HashFilesFunction.cs +++ b/src/Runner.Worker/Expressions/HashFilesFunction.cs @@ -69,11 +69,12 @@ namespace GitHub.Runner.Worker.Expressions //Feature flag to fetch a new version of hashFiles script string hashFilesScript = string.Empty; var isGlobHashFilesEnabled = executionContext.Global.Variables.GetBoolean("DistributedTask.UseGlobHashFiles") ?? false; - if(isGlobHashFilesEnabled){ + if (isGlobHashFilesEnabled) + { hashFilesScript = Path.Combine(binDir, "hashFilesV2"); } hashFilesScript = Path.Combine(binDir, "hashFiles"); - + var hashResult = string.Empty; var p = new ProcessInvoker(new HashFilesTrace(context.Trace)); p.ErrorDataReceived += ((_, data) =>