diff --git a/src/runner/Synapse.Runner/Services/Executors/ScriptProcessExecutor.cs b/src/runner/Synapse.Runner/Services/Executors/ScriptProcessExecutor.cs index 3c34702b..04fa05b2 100644 --- a/src/runner/Synapse.Runner/Services/Executors/ScriptProcessExecutor.cs +++ b/src/runner/Synapse.Runner/Services/Executors/ScriptProcessExecutor.cs @@ -1,4 +1,4 @@ -// Copyright © 2024-Present The Synapse Authors +// Copyright © 2024-Present The Synapse Authors // // Licensed under the Apache License, Version 2.0 (the "License"), // you may not use this file except in compliance with the License. @@ -69,7 +69,7 @@ protected override async Task DoExecuteAsync(CancellationToken cancellationToken ? null : await this.ProcessDefinition.Environment.ToAsyncEnumerable().ToDictionaryAwaitAsync(kvp => ValueTask.FromResult(kvp.Key), async kvp => (await this.EvaluateAndSerializeAsync(kvp.Value, cancellationToken).ConfigureAwait(false))!, cancellationToken).ConfigureAwait(false); var process = await executor.ExecuteAsync(script, arguments, environment, cancellationToken).ConfigureAwait(false); - if (this.Task.Definition.Run.Await != false) + if (this.Task.Definition.Run.Await == false) { await this.SetResultAsync(new(), this.Task.Definition.Then, cancellationToken).ConfigureAwait(false); return;