From 22d89d6ea16607ec160f3ff7c72e715e32f615d1 Mon Sep 17 00:00:00 2001 From: JustArchi Date: Tue, 19 Feb 2019 00:06:50 +0100 Subject: [PATCH] Misc --- ArchiSteamFarm/Bot.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ArchiSteamFarm/Bot.cs b/ArchiSteamFarm/Bot.cs index 7b45d9e19..26d9b44ff 100755 --- a/ArchiSteamFarm/Bot.cs +++ b/ArchiSteamFarm/Bot.cs @@ -1421,16 +1421,16 @@ namespace ArchiSteamFarm { return message.Replace("\\", "\\\\").Replace("[", "\\["); } - private static string GetBotFilePath(string botName, EBotFileType filePath) { - if (string.IsNullOrEmpty(botName) || !Enum.IsDefined(typeof(EBotFileType), filePath)) { - ASF.ArchiLogger.LogNullError(nameof(botName) + " || " + nameof(filePath)); + private static string GetBotFilePath(string botName, EBotFileType fileType) { + if (string.IsNullOrEmpty(botName) || !Enum.IsDefined(typeof(EBotFileType), fileType)) { + ASF.ArchiLogger.LogNullError(nameof(botName) + " || " + nameof(fileType)); return null; } string botPath = Path.Combine(SharedInfo.ConfigDirectory, botName); - switch (filePath) { + switch (fileType) { case EBotFileType.Config: return botPath + SharedInfo.ConfigExtension; @@ -1453,7 +1453,7 @@ namespace ArchiSteamFarm { return botPath + SharedInfo.SentryHashExtension; default: - ASF.ArchiLogger.LogGenericError(string.Format(Strings.WarningUnknownValuePleaseReport, nameof(filePath), filePath)); + ASF.ArchiLogger.LogGenericError(string.Format(Strings.WarningUnknownValuePleaseReport, nameof(fileType), fileType)); return null; }