Skip to content

Commit

Permalink
style 修正格式
Browse files Browse the repository at this point in the history
  • Loading branch information
chr233 committed Sep 28, 2023
1 parent 8582999 commit d8ced3f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
13 changes: 6 additions & 7 deletions ASFEnhance/Cart/Command.cs
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ internal static class Command
return FormatStaticResponse(string.Format(Strings.BotNotFound, botNames));
}

IList<string?> results = await Utilities.InParallel(bots.Select(bot => ResponseClearCartGames(bot))).ConfigureAwait(false);
var results = await Utilities.InParallel(bots.Select(bot => ResponseClearCartGames(bot))).ConfigureAwait(false);

List<string> responses = new(results.Where(result => !string.IsNullOrEmpty(result))!);

Expand Down Expand Up @@ -238,7 +238,7 @@ internal static class Command
return FormatStaticResponse(string.Format(Strings.BotNotFound, botNames));
}

IList<string?> results = await Utilities.InParallel(bots.Select(bot => ResponseGetCartCountries(bot))).ConfigureAwait(false);
var results = await Utilities.InParallel(bots.Select(bot => ResponseGetCartCountries(bot))).ConfigureAwait(false);

List<string> responses = new(results.Where(result => !string.IsNullOrEmpty(result))!);

Expand Down Expand Up @@ -331,7 +331,7 @@ internal static class Command
return FormatStaticResponse(string.Format(Strings.BotNotFound, botNames));
}

IList<string?> results = await Utilities.InParallel(bots.Select(bot => ResponsePurchaseSelf(bot))).ConfigureAwait(false);
var results = await Utilities.InParallel(bots.Select(bot => ResponsePurchaseSelf(bot))).ConfigureAwait(false);

List<string> responses = new(results.Where(result => !string.IsNullOrEmpty(result))!);

Expand Down Expand Up @@ -408,7 +408,7 @@ internal static class Command
return FormatStaticResponse(string.Format(Strings.BotNotFound, botNames));
}

IList<string?> results = await Utilities.InParallel(bots.Select(bot => ResponseFakePurchaseSelf(bot))).ConfigureAwait(false);
var results = await Utilities.InParallel(bots.Select(bot => ResponseFakePurchaseSelf(bot))).ConfigureAwait(false);

List<string> responses = new(results.Where(result => !string.IsNullOrEmpty(result))!);

Expand Down Expand Up @@ -564,7 +564,7 @@ internal static class Command
return FormatStaticResponse(string.Format(Strings.BotNotFound, botNames));
}

IList<string?> results = await Utilities.InParallel(bots.Select(bot => ResponseGetDigitalGiftCcardOptions(bot))).ConfigureAwait(false);
var results = await Utilities.InParallel(bots.Select(bot => ResponseGetDigitalGiftCcardOptions(bot))).ConfigureAwait(false);

List<string> responses = new(results.Where(result => !string.IsNullOrEmpty(result))!);

Expand Down Expand Up @@ -636,7 +636,6 @@ internal static class Command

var response3 = await WebRequest.GetFinalPrice(botA, transId, true).ConfigureAwait(false);


var response4 = await WebRequest.GetExternalPaymentUrl(botA, transId).ConfigureAwait(false);

if (response4 == null)
Expand Down Expand Up @@ -680,7 +679,7 @@ internal static class Command
return FormatStaticResponse(string.Format(Strings.BotNotFound, botBNames));
}

IList<string?> results = await Utilities.InParallel(botBNamesList.Select(botB => ResponseSendDigitalGiftCardBot(botA, botB, strBalance))).ConfigureAwait(false);
var results = await Utilities.InParallel(botBNamesList.Select(botB => ResponseSendDigitalGiftCardBot(botA, botB, strBalance))).ConfigureAwait(false);

List<string> responses = new(results.Where(result => !string.IsNullOrEmpty(result))!);

Expand Down
2 changes: 1 addition & 1 deletion ASFEnhance/Explorer/Command.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ internal static class Command
throw new ArgumentNullException(nameof(botNames));
}

HashSet<Bot>? bots = Bot.GetBots(botNames);
var bots = Bot.GetBots(botNames);

if ((bots == null) || (bots.Count == 0))
{
Expand Down

0 comments on commit d8ced3f

Please sign in to comment.