Skip to content

Commit

Permalink
Code issue fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasArdal committed Nov 15, 2024
1 parent 9708d77 commit f4ae1d8
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/Elmah.Io.Functions/ElmahIoHeartbeatFilter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,11 @@ public async Task OnExecutedAsync(FunctionExecutedContext executedContext, Cance
took = stopwatch.ElapsedMilliseconds;
}

if (api == null)
api ??= (ElmahioAPI)ElmahioAPI.Create(options.ApiKey, new ElmahIoOptions
{
api = (ElmahioAPI)ElmahioAPI.Create(options.ApiKey, new ElmahIoOptions
{
Timeout = options.Timeout,
UserAgent = UserAgent(),
});
}
Timeout = options.Timeout,
UserAgent = UserAgent(),
});

if (executedContext.FunctionResult.Succeeded)
{
Expand Down

0 comments on commit f4ae1d8

Please sign in to comment.