Skip to content

Commit

Permalink
Exit early if no request Ids
Browse files Browse the repository at this point in the history
No point in trying to query if there's nothing to query.
  • Loading branch information
martincostello committed Dec 1, 2023
1 parent 6252e85 commit 3314b76
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ public class CloudWatchLogsFixture(IMessageSink diagnosticMessageSink) : IAsyncL

public async Task DisposeAsync()
{
if (RequestIds.Count < 1)
{
return;
}

var credentials = AwsConfiguration.GetCredentials();
string functionName = AwsConfiguration.FunctionName;
string regionName = AwsConfiguration.RegionName;
Expand Down

0 comments on commit 3314b76

Please sign in to comment.