Fix IDE0083
This commit is contained in:
committed by
Pavel Penev
parent
bd2b3d9793
commit
164abfdae1
@@ -35,7 +35,7 @@ namespace OpenRA.Mods.Common.UtilityCommands
|
||||
|
||||
// HACK: We know that maps can only be oramap or folders, which are ReadWrite
|
||||
var folder = new Folder(Platform.EngineDir);
|
||||
if (!(folder.OpenPackage(args[1], modData.ModFiles) is IReadWritePackage package))
|
||||
if (folder.OpenPackage(args[1], modData.ModFiles) is not IReadWritePackage package)
|
||||
throw new FileNotFoundException(args[1]);
|
||||
|
||||
IEnumerable<UpdateRule> rules = null;
|
||||
|
||||
Reference in New Issue
Block a user