diff options
author | vnugent <public@vaughnnugent.com> | 2024-01-13 22:46:49 -0500 |
---|---|---|
committer | vnugent <public@vaughnnugent.com> | 2024-01-13 22:46:49 -0500 |
commit | c0e2a71b7b4081117d87c2c34c1b2afb8d511732 (patch) | |
tree | 0cb5a9080bdade4b5bb68463242cb3b00b0c0146 /plugins/VNLib.Data.Caching.Providers.Redis | |
parent | 724916bd5063728514147c8f2d4c1a3a5de9a624 (diff) |
some request security updates
Diffstat (limited to 'plugins/VNLib.Data.Caching.Providers.Redis')
-rw-r--r-- | plugins/VNLib.Data.Caching.Providers.Redis/src/RedisClientCacheEntry.cs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/plugins/VNLib.Data.Caching.Providers.Redis/src/RedisClientCacheEntry.cs b/plugins/VNLib.Data.Caching.Providers.Redis/src/RedisClientCacheEntry.cs index 7f2f3ed..f80c750 100644 --- a/plugins/VNLib.Data.Caching.Providers.Redis/src/RedisClientCacheEntry.cs +++ b/plugins/VNLib.Data.Caching.Providers.Redis/src/RedisClientCacheEntry.cs @@ -1,5 +1,5 @@ /* -* Copyright (c) 2023 Vaughn Nugent +* Copyright (c) 2024 Vaughn Nugent * * Library: VNLib * Package: VNLib.Data.Caching.Providers.Redis @@ -328,10 +328,7 @@ namespace VNLib.Data.Caching.Providers.Redis public void Advance(int count) { - if(count < 0) - { - throw new ArgumentOutOfRangeException(nameof(count)); - } + ArgumentOutOfRangeException.ThrowIfNegative(count); _position += count; } |