Skip to content

Commit 1ef55f4

Browse files
Rename variable for clarity and consistency.
1 parent 44bb92d commit 1ef55f4

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

samples/aws/sqs-native-integration/Sqs_8/Sender/Program.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
{
1515
Console.WriteLine("Press [s] to send a message or [ESC] to exit.");
1616

17-
var line = Console.ReadKey();
17+
var key = Console.ReadKey();
1818
Console.WriteLine();
1919

20-
if (line.Key == ConsoleKey.S)
20+
if (key.Key == ConsoleKey.S)
2121
{
2222
#region SendingANativeMessage
2323
await SendTo(new Dictionary<string, MessageAttributeValue>
@@ -27,7 +27,7 @@ await SendTo(new Dictionary<string, MessageAttributeValue>
2727
#endregion
2828
Console.WriteLine("Message was sent.");
2929
}
30-
else if (line.Key == ConsoleKey.Escape)
30+
else if (key.Key == ConsoleKey.Escape)
3131
{
3232
return;
3333
}

samples/aws/sqs-native-integration/Sqs_9/Receiver/Program.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@
3232
endpointConfiguration.Pipeline.Register(new AccessToAmazonSqsNativeMessageBehavior(logger), "Demonstrates how to access the native message from a pipeline behavior");
3333
#endregion
3434

35-
36-
3735
Console.WriteLine("Press any key, the application is starting");
3836
Console.ReadKey();
3937
Console.WriteLine("Starting...");

samples/aws/sqs-native-integration/Sqs_9/Sender/Program.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
{
1212
Console.WriteLine("Press [s] to send a message or [ESC] to exit.");
1313

14-
var line = Console.ReadKey();
14+
var key = Console.ReadKey();
1515
Console.WriteLine();
1616

17-
if (line.Key == ConsoleKey.S)
17+
if (key.Key == ConsoleKey.S)
1818
{
1919
#region SendingANativeMessage
2020
await SendTo(new Dictionary<string, MessageAttributeValue>
@@ -24,7 +24,7 @@ await SendTo(new Dictionary<string, MessageAttributeValue>
2424
#endregion
2525
Console.WriteLine("Message was sent.");
2626
}
27-
else if (line.Key == ConsoleKey.Escape)
27+
else if (key.Key == ConsoleKey.Escape)
2828
{
2929
return;
3030
}

0 commit comments

Comments
 (0)