Skip to content

Commit ada397f

Browse files
committed
Format
1 parent 4649653 commit ada397f

File tree

5 files changed

+11
-6
lines changed

5 files changed

+11
-6
lines changed

Minio.Tests/DateTimeTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public void TestObjectStatExpires()
6868
public void TestObjectStatObjectLockRetainUntilDate()
6969
{
7070
var d = TruncateMilliseconds(DateTime.Now);
71-
var headers = new Dictionary<string, string> (StringComparer.InvariantCultureIgnoreCase)
71+
var headers = new Dictionary<string, string>(StringComparer.InvariantCultureIgnoreCase)
7272
{
7373
["x-amz-object-lock-retain-until-date"] = d.ToUniversalTime().ToString("O")
7474
};

Minio/Credentials/IAMAWSProvider.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,8 @@ public IAMAWSProvider WithEndpoint(string endpoint)
238238
if (string.IsNullOrEmpty(endpoint))
239239
throw new ArgumentException($"'{nameof(endpoint)}' cannot be null or empty.", nameof(endpoint));
240240

241-
if (endpoint.Contains("https", StringComparison.OrdinalIgnoreCase) || endpoint.Contains("http", StringComparison.OrdinalIgnoreCase))
241+
if (endpoint.Contains("https", StringComparison.OrdinalIgnoreCase) ||
242+
endpoint.Contains("http", StringComparison.OrdinalIgnoreCase))
242243
CustomEndPoint = new Uri(endpoint);
243244
else
244245
CustomEndPoint = RequestUtil.MakeTargetURL(endpoint, true);

Minio/DataModel/Args/PutObjectArgs.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,8 @@ var hash
121121
#else
122122
var hash = SHA256.HashData(RequestBody.Span);
123123
#endif
124-
var hex = BitConverter.ToString(hash).Replace("-", string.Empty, StringComparison.OrdinalIgnoreCase).ToLowerInvariant();
124+
var hex = BitConverter.ToString(hash).Replace("-", string.Empty, StringComparison.OrdinalIgnoreCase)
125+
.ToLowerInvariant();
125126
requestMessageBuilder.AddOrUpdateHeaderParameter("x-amz-content-sha256", hex);
126127
requestMessageBuilder.SetBody(RequestBody);
127128
}

Minio/DataModel/Replication/ReplicationConfiguration.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ public string MarshalXML()
7676
xs.Serialize(xw, this, ns);
7777
xw.Flush();
7878

79-
str = Utils.RemoveNamespaceInXML(sw.ToString()).Replace("\r", "", StringComparison.OrdinalIgnoreCase).Replace("\n", "", StringComparison.OrdinalIgnoreCase);
79+
str = Utils.RemoveNamespaceInXML(sw.ToString()).Replace("\r", "", StringComparison.OrdinalIgnoreCase)
80+
.Replace("\n", "", StringComparison.OrdinalIgnoreCase);
8081
}
8182
}
8283
catch (Exception ex)

Minio/V4Authenticator.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,8 @@ ReadOnlySpan<byte> hash
263263
/// <returns>Hexlified string of input bytes</returns>
264264
private string BytesToHex(ReadOnlySpan<byte> checkSum)
265265
{
266-
return BitConverter.ToString(checkSum.ToArray()).Replace("-", string.Empty, StringComparison.OrdinalIgnoreCase).ToLowerInvariant();
266+
return BitConverter.ToString(checkSum.ToArray()).Replace("-", string.Empty, StringComparison.OrdinalIgnoreCase)
267+
.ToLowerInvariant();
267268
}
268269

269270
/// <summary>
@@ -545,7 +546,8 @@ var hash
545546
#else
546547
var hash = SHA256.HashData(body.Span);
547548
#endif
548-
var hex = BitConverter.ToString(hash).Replace("-", string.Empty, StringComparison.OrdinalIgnoreCase).ToLowerInvariant();
549+
var hex = BitConverter.ToString(hash).Replace("-", string.Empty, StringComparison.OrdinalIgnoreCase)
550+
.ToLowerInvariant();
549551
requestBuilder.AddOrUpdateHeaderParameter("x-amz-content-sha256", hex);
550552
}
551553
else if (!IsSecure && !requestBuilder.Content.IsEmpty)

0 commit comments

Comments
 (0)