Change throw exceptions to use nameof in parameter
This commit is contained in:
@@ -276,7 +276,7 @@ namespace OpenRA.Mods.D2k.UtilityCommands
|
||||
stream = File.OpenRead(filename);
|
||||
|
||||
if (stream.Length == 0 || stream.Length % 4 != 0)
|
||||
throw new ArgumentException("The map is in an unrecognized format!", "filename");
|
||||
throw new ArgumentException("The map is in an unrecognized format!", nameof(filename));
|
||||
|
||||
Initialize(filename);
|
||||
FillMap();
|
||||
|
||||
Reference in New Issue
Block a user