Skip to content

Commit

Permalink
style 清理代码
Browse files Browse the repository at this point in the history
  • Loading branch information
chr233 committed Dec 23, 2022
1 parent bc07715 commit 636106a
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion ASFEnhance/Community/WebRequest.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using ArchiSteamFarm.Steam;
using ASFEnhance.Data;
using ArchiSteamFarm.Steam.Integration;
using ASFEnhance.Data;
using static ASFEnhance.Utils;

namespace ASFEnhance.Community
Expand Down
4 changes: 2 additions & 2 deletions ASFEnhance/IPC/Controllers/CuratorController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,9 @@ public async Task<ActionResult<GenericResponse>> FollowingCurators(string botNam
{
return BadRequest(new GenericResponse(false, "Count 无效"));
}

var response = bots.ToDictionary(x => x.BotName, x => new HashSet<CuratorItem>());

var results = await Utilities.InParallel(bots.Select(
async bot => {
if (!bot.IsConnectedAndLoggedOn) { return (bot.BotName, new()); }
Expand Down
1 change: 0 additions & 1 deletion ASFEnhance/IPC/Controllers/PurchaseController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
using ASFEnhance.IPC.Responses;
using ASFEnhance.Localization;
using Microsoft.AspNetCore.Mvc;
using SteamKit2;
using Swashbuckle.AspNetCore.Annotations;
using System.Globalization;
using System.Net;
Expand Down
1 change: 0 additions & 1 deletion ASFEnhance/IPC/Controllers/WishlistController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using ArchiSteamFarm.IPC.Responses;
using ArchiSteamFarm.Localization;
using ArchiSteamFarm.Steam;
using ASFEnhance.Data;
using ASFEnhance.IPC.Requests;
using ASFEnhance.IPC.Responses;
using ASFEnhance.Localization;
Expand Down
1 change: 0 additions & 1 deletion ASFEnhance/IPC/Requests/CuratorsRequest.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Newtonsoft.Json;
using System.ComponentModel.DataAnnotations;

namespace ASFEnhance.IPC.Requests
{
Expand Down
1 change: 0 additions & 1 deletion ASFEnhance/Update/Command.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using System.IO.Compression;
using System.Text;
using static ASFEnhance.Utils;
using static SteamKit2.GC.Dota.Internal.CMsgClientProvideSurveyResult;

namespace ASFEnhance.Update
{
Expand Down
3 changes: 1 addition & 2 deletions ASFEnhance/WishList/WebRequest.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using ArchiSteamFarm.Localization;
using ArchiSteamFarm.Steam;
using ArchiSteamFarm.Steam.Data;
using ArchiSteamFarm.Web.Responses;
using ASFEnhance.Data;
using SteamKit2;
using static ASFEnhance.Utils;
Expand Down Expand Up @@ -113,7 +112,7 @@ internal static async Task<bool> FollowGame(this Bot bot, uint gameId, bool isFo
internal static async Task<CheckGameResponse> CheckGame(this Bot bot, uint gameId)
{
Uri request = new(SteamStoreURL, $"/app/{gameId}");

var response = await bot.ArchiWebHandler.UrlPostToHtmlDocumentWithSession(request).ConfigureAwait(false);

if (response == null)
Expand Down

0 comments on commit 636106a

Please sign in to comment.