Skip to content

Commit

Permalink
Update spacing and braces.
Browse files Browse the repository at this point in the history
  • Loading branch information
rlhagerm committed Oct 23, 2023
1 parent 8e9ae6a commit 52c83ee
Showing 1 changed file with 21 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,28 +34,32 @@ public static async Task Main()

DescribeLogGroupsResponse response;

do
{
if(newToken is not null){
do
{
if (newToken is not null)
{
request.NextToken = newToken;
}
response = await client.DescribeLogGroupsAsync(request);
}

response = await client.DescribeLogGroupsAsync(request);

response.LogGroups.ForEach(lg =>
{
Console.WriteLine($"{lg.LogGroupName} is associated with the key: {lg.KmsKeyId}.");
Console.WriteLine($"Created on: {lg.CreationTime.Date.Date}");
Console.WriteLine($"Date for this group will be stored for: {lg.RetentionInDays} days.\n");
});
response.LogGroups.ForEach(lg =>
{
Console.WriteLine($"{lg.LogGroupName} is associated with the key: {lg.KmsKeyId}.");
Console.WriteLine($"Created on: {lg.CreationTime.Date.Date}");
Console.WriteLine($"Date for this group will be stored for: {lg.RetentionInDays} days.\n");
});

if(response.NextToken is null){
if (response.NextToken is null)
{
done = true;
} else {
}
else
{
newToken = response.NextToken;
}
}
while (!done);
}
}
}
while (!done);
}
}

Expand Down

0 comments on commit 52c83ee

Please sign in to comment.