Fix IDE0028, IDE0300, IDE0301, IDE0302, IDE0303, IDE0304.
Silence IDE0305.
This commit is contained in:
committed by
Pavel Penev
parent
0740991c12
commit
79454d8fd2
@@ -241,7 +241,7 @@ namespace OpenRA.Mods.Cnc.FileSystem
|
||||
using (var db = new XccGlobalDatabase(mixDatabase))
|
||||
globalFilenames = db.Entries.ToHashSet().ToArray();
|
||||
|
||||
package = new MixFile(s, filename, globalFilenames ?? Array.Empty<string>());
|
||||
package = new MixFile(s, filename, globalFilenames ?? []);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -105,7 +105,7 @@ namespace OpenRA.Mods.Cnc.FileSystem
|
||||
}
|
||||
}
|
||||
|
||||
static readonly Dictionary<uint, string> Names = new();
|
||||
static readonly Dictionary<uint, string> Names = [];
|
||||
|
||||
public static void AddStandardName(string s)
|
||||
{
|
||||
|
||||
@@ -32,7 +32,7 @@ namespace OpenRA.Mods.Cnc.FileSystem
|
||||
public string Name { get; }
|
||||
public IEnumerable<string> Contents => index.Keys;
|
||||
|
||||
readonly Dictionary<string, Entry> index = new();
|
||||
readonly Dictionary<string, Entry> index = [];
|
||||
readonly Stream stream;
|
||||
|
||||
public PakFile(Stream stream, string filename)
|
||||
|
||||
Reference in New Issue
Block a user