From 52c83ee8eedc108416528082cf5a63bd729edec0 Mon Sep 17 00:00:00 2001 From: Rachel Hagerman <110480692+rlhagerm@users.noreply.github.com> Date: Mon, 23 Oct 2023 10:55:27 -0500 Subject: [PATCH] Update spacing and braces. --- .../DescribeLogGroups.cs | 38 ++++++++++--------- 1 file changed, 21 insertions(+), 17 deletions(-) diff --git a/dotnetv3/CloudWatchLogs/DescribeLogGroupsExample/DescribeLogGroups.cs b/dotnetv3/CloudWatchLogs/DescribeLogGroupsExample/DescribeLogGroups.cs index fd1eac94f17..b1c1f4ede30 100644 --- a/dotnetv3/CloudWatchLogs/DescribeLogGroupsExample/DescribeLogGroups.cs +++ b/dotnetv3/CloudWatchLogs/DescribeLogGroupsExample/DescribeLogGroups.cs @@ -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); } }