Fix CA1849

This commit is contained in:
RoosterDragon
2023-03-12 16:32:02 +00:00
committed by abcdefg30
parent 6362bbd176
commit c3e6c4685f
2 changed files with 4 additions and 1 deletions

View File

@@ -762,6 +762,9 @@ dotnet_diagnostic.CA1846.severity = warning
# Use string.Contains(char) instead of string.Contains(string) with single characters.
dotnet_diagnostic.CA1847.severity = warning
# Call async methods when in an async method.
dotnet_diagnostic.CA1849.severity = warning
# Unnecessary call to 'Dictionary.ContainsKey(key)'.
dotnet_diagnostic.CA1853.severity = warning

View File

@@ -239,7 +239,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
using (var zz = package.GetStream(kv.Value))
using (var f = File.Create(targetPath))
zz.CopyTo(f);
await zz.CopyToAsync(f);
}
package.Dispose();