Skip to content

Commit

Permalink
no var.
Browse files Browse the repository at this point in the history
  • Loading branch information
KristofferStrube committed Jun 18, 2024
1 parent e473c50 commit e9fd7fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/KristofferStrube.Blazor.WebWorkers/JobWorker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public async Task<TOutput> ExecuteAsync(TInput input)
await eventListener.DisposeAsync();

JSONJob<object, object>.JobResponse response = await e.GetDataAsync<JSONJob<object, object>.JobResponse>();
if (pendingTasks.Remove(response.RequestIdentifier, out var successTaskCompletionSource))
if (pendingTasks.Remove(response.RequestIdentifier, out TaskCompletionSource<TOutput> successTaskCompletionSource))

Check warning on line 42 in src/KristofferStrube.Blazor.WebWorkers/JobWorker.cs

View workflow job for this annotation

GitHub Actions / build

Converting null literal or possible null value to non-nullable type.
{
successTaskCompletionSource.SetResult(JsonSerializer.Deserialize<TOutput>(response.OutputSerialized)!);
}
Expand Down

0 comments on commit e9fd7fd

Please sign in to comment.