Skip to content

Commit 454b3e4

Browse files
committed
Fix up previous changes
1 parent 048f67d commit 454b3e4

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/Caching/SqlServer/src/SqlServerCache.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,11 @@ public SqlServerCache(IOptions<SqlServerCacheOptions> options)
6060
if (cacheOptions.DefaultSlidingExpiration <= TimeSpan.Zero)
6161
{
6262
throw new ArgumentOutOfRangeException(
63+
#pragma warning disable CA2208 // Instantiate argument exceptions correctly
6364
nameof(cacheOptions.DefaultSlidingExpiration),
6465
cacheOptions.DefaultSlidingExpiration,
6566
"The sliding expiration value must be positive.");
67+
#pragma warning restore CA2208 // Instantiate argument exceptions correctly
6668
}
6769

6870
_systemClock = cacheOptions.SystemClock ?? new SystemClock();

src/Tools/Shared/CommandLine/CommandLineApplicationExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public static CommandOption Option(this CommandLineApplication command, string t
2626
=> command.Option(
2727
template,
2828
description,
29-
template.Contains('<')
29+
template.Contains("<")
3030
? template.EndsWith(">...", StringComparison.Ordinal) ? CommandOptionType.MultipleValue : CommandOptionType.SingleValue
3131
: CommandOptionType.NoValue);
3232

0 commit comments

Comments
 (0)