mirror of
https://github.com/DuendeSoftware/products
synced 2026-05-24 09:28:24 +00:00
Merge pull request #2144 from DuendeSoftware/beh/fix-ca1825
Address CA1825 Violations
This commit is contained in:
commit
1283ddbc24
2 changed files with 2 additions and 2 deletions
|
|
@ -20,6 +20,6 @@
|
|||
Currently all existing warnings are suppressed. We will remove them as we address them. But this configuration
|
||||
allows us to prevent new warnings from being introduced while we work on the existing ones.
|
||||
-->
|
||||
<NoWarn>$(NoWarn);CA1002;CA1008;CA1031;CA1034;CA1040;CA1051;CA1054;CA1055;CA1056;CA1062;CA1716;CA1724;CA1725;CA1727;CA1819;CA1825;CA1845;CA1848;CA1849;CA1851;CA1852;CA1854;CA1859;CA1861;CA1860;CA1863;CA1864;CA1870;CA1872;CA2000;CA2008;CA2201;CA2007;CA2208;CA2016;CA2211;CA2227;CA2234;CA2249;CA2253;CA2254;CA2263;CA5404;CA5394;</NoWarn>
|
||||
<NoWarn>$(NoWarn);CA1002;CA1008;CA1031;CA1034;CA1040;CA1051;CA1054;CA1055;CA1056;CA1062;CA1716;CA1724;CA1725;CA1727;CA1819;CA1845;CA1848;CA1849;CA1851;CA1852;CA1854;CA1859;CA1861;CA1860;CA1863;CA1864;CA1870;CA1872;CA2000;CA2008;CA2201;CA2007;CA2208;CA2016;CA2211;CA2227;CA2234;CA2249;CA2253;CA2254;CA2263;CA5404;CA5394;</NoWarn>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ public class DefaultReplayCache : IReplayCache
|
|||
AbsoluteExpiration = expiration
|
||||
};
|
||||
|
||||
await _cache.SetAsync(Prefix + purpose + handle, new byte[] { }, options);
|
||||
await _cache.SetAsync(Prefix + purpose + handle, [], options);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
|
|
|
|||
Loading…
Reference in a new issue