Skip to content

Commit 2b62e63

Browse files
author
Per Kops
committed
style: formatting in MessageRequestBuilder
1 parent 71a1f37 commit 2b62e63

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/Atc.Rest.Client/Builder/MessageRequestBuilder.cs

+2-4
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public IMessageRequestBuilder WithQueryParameter(
148148
{
149149
var objects = ((IEnumerable)value).Cast<object>().ToArray();
150150
var sb = new StringBuilder();
151-
for (int i = 0; i < objects.Length; i++)
151+
for (var i = 0; i < objects.Length; i++)
152152
{
153153
sb.Append(i == 0
154154
? Uri.EscapeDataString(objects[i].ToString())
@@ -205,9 +205,7 @@ private Uri BuildRequestUri()
205205

206206
private static string BuildQueryKeyEqualValue(
207207
KeyValuePair<string, string> pair)
208-
{
209-
return pair.Key.StartsWith("#", StringComparison.Ordinal)
208+
=> pair.Key.StartsWith("#", StringComparison.Ordinal)
210209
? $"{pair.Key.Replace("#", string.Empty)}={pair.Value}"
211210
: $"{pair.Key}={Uri.EscapeDataString(pair.Value)}";
212-
}
213211
}

0 commit comments

Comments
 (0)