Skip to content

Commit

Permalink
Misc
Browse files Browse the repository at this point in the history
  • Loading branch information
JustArchi committed May 3, 2024
1 parent ab9ca4b commit 0f6a3f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ArchiSteamFarm/Steam/Bot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1536,7 +1536,7 @@ internal async Task OnConfigChanged(bool deleted) {
throw new InvalidOperationException(nameof(configFile));
}

(BotConfig? botConfig, _) = await BotConfig.Load(configFile, BotName).ConfigureAwait(false);
(BotConfig? botConfig, _) = await BotConfig.Load(configFile).ConfigureAwait(false);

if (botConfig == null) {
// Invalid config file, we allow user to fix it without destroying the bot right away
Expand Down Expand Up @@ -1684,7 +1684,7 @@ internal static async Task RegisterBot(string botName) {
return;
}

(BotConfig? botConfig, string? latestJson) = await BotConfig.Load(configFilePath, botName).ConfigureAwait(false);
(BotConfig? botConfig, string? latestJson) = await BotConfig.Load(configFilePath).ConfigureAwait(false);

if (botConfig == null) {
ASF.ArchiLogger.LogGenericError(string.Format(CultureInfo.CurrentCulture, Strings.ErrorBotConfigInvalid, configFilePath));
Expand Down
2 changes: 1 addition & 1 deletion ArchiSteamFarm/Steam/Storage/BotConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ public static async Task<bool> Write(string filePath, BotConfig botConfig) {
return result;
}

internal static async Task<(BotConfig? BotConfig, string? LatestJson)> Load(string filePath, string? botName = null) {
internal static async Task<(BotConfig? BotConfig, string? LatestJson)> Load(string filePath) {
ArgumentException.ThrowIfNullOrEmpty(filePath);

if (!File.Exists(filePath)) {
Expand Down

0 comments on commit 0f6a3f2

Please sign in to comment.