Skip to content

Commit

Permalink
Return task, successful or not (#10597)
Browse files Browse the repository at this point in the history
  • Loading branch information
liliankasem authored Nov 5, 2024
1 parent bfa7535 commit 2d06068
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WebJobs.Script/Host/FunctionMetadataManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ private void AddMetadataFromCustomProviders(IEnumerable<IFunctionProvider> funct

var completedTask = Task.WhenAny(getFunctionMetadataFromProviderTask, delayTask).ContinueWith(t =>
{
if (t.Result == getFunctionMetadataFromProviderTask && getFunctionMetadataFromProviderTask.IsCompletedSuccessfully)
if (t.Result == getFunctionMetadataFromProviderTask)
{
return getFunctionMetadataFromProviderTask.Result;
}
Expand Down

0 comments on commit 2d06068

Please sign in to comment.