Format stuff

This commit is contained in:
Tyrrrz
2024-10-26 21:41:16 +03:00
parent e8192b2b53
commit 09e0b3f133
45 changed files with 156 additions and 174 deletions

View File

@@ -39,7 +39,7 @@ public static class Http
ShouldHandle = new PredicateBuilder().Handle<Exception>(IsRetryableException),
MaxRetryAttempts = 4,
BackoffType = DelayBackoffType.Exponential,
Delay = TimeSpan.FromSeconds(1)
Delay = TimeSpan.FromSeconds(1),
}
)
.Build();
@@ -68,7 +68,7 @@ public static class Http
return ValueTask.FromResult<TimeSpan?>(
TimeSpan.FromSeconds(Math.Pow(2, args.AttemptNumber) + 1)
);
}
},
}
)
.Build();

View File

@@ -9,7 +9,7 @@ public static class PathEx
{
private static readonly HashSet<char> InvalidFileNameChars =
[
.. Path.GetInvalidFileNameChars()
.. Path.GetInvalidFileNameChars(),
];
public static string EscapeFileName(string path)