mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-16 08:25:28 +00:00
Use newer syntax for Enum.IsDefined()
This commit is contained in:
@@ -73,7 +73,7 @@ internal static class Logging {
|
||||
}
|
||||
|
||||
internal static async Task<string?> GetUserInput(ASF.EUserInputType userInputType, string botName = SharedInfo.ASF) {
|
||||
if ((userInputType == ASF.EUserInputType.None) || !Enum.IsDefined(typeof(ASF.EUserInputType), userInputType)) {
|
||||
if ((userInputType == ASF.EUserInputType.None) || !Enum.IsDefined(userInputType)) {
|
||||
throw new InvalidEnumArgumentException(nameof(userInputType), (int) userInputType, typeof(ASF.EUserInputType));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user