Change throw exceptions to use nameof in parameter
This commit is contained in:
@@ -279,7 +279,7 @@ namespace OpenRA.Mods.Common
|
||||
case InaccuracyType.Absolute:
|
||||
return inaccuracy;
|
||||
default:
|
||||
throw new InvalidEnumArgumentException("inaccuracyType", (int)inaccuracyType, typeof(InaccuracyType));
|
||||
throw new InvalidEnumArgumentException(nameof(inaccuracyType), (int)inaccuracyType, typeof(InaccuracyType));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user