Skip to content

Commit

Permalink
Linting V1
Browse files Browse the repository at this point in the history
  • Loading branch information
GravityWolfNotAmused committed Jan 14, 2024
1 parent b42f2b7 commit 9dd4ea8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ protected void HandleException(Exception e)
return;
}

if(e is SteamException steamException)
if (e is SteamException steamException)
{
Error($"There was an issue speaking with Steam Query Server.", e);
return;
Expand Down
4 changes: 2 additions & 2 deletions DiscordPlayerCountBot/Providers/RconProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public RconProvider(BotInformation info) : base(info)

var service = new RconService();

Check failure on line 23 in DiscordPlayerCountBot/Providers/RconProvider.cs

View workflow job for this annotation

GitHub Actions / dotnet_format

DiscordPlayerCountBot/Providers/RconProvider.cs#L23

WHITESPACE: Fix whitespace formatting. Replace 26 characters with '\r\n\r\n\s\s\s\s\s\s\s\s\s\s\s\s'.

if(!Enum.TryParse<RconServiceType>(information.RconServiceName, true, out var serviceType))
if (!Enum.TryParse<RconServiceType>(information.RconServiceName, true, out var serviceType))
{
throw new ConfigurationException($"Bot: {information.Name} has an invalid RconServiceName specified in it's config. {values}");
}
Expand All @@ -32,7 +32,7 @@ public RconProvider(BotInformation info) : base(info)
var addressAndPort = information.GetAddressAndPort();
var response = await service.GetRconResponse(addressAndPort.Item1, addressAndPort.Item2, applicationVariables["RconPassword"], serviceType);

if(response == null)
if (response == null)
throw new ApplicationException($"Server Address: {information.Address} was not found in Steam's directory.");

HandleLastException(information);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ namespace DiscordPlayerCountBot.Services.SteamQuery
{
public class SteamQueryService : ISteamQueryService
{
public async Task<BaseViewModel> GetQueryResponse(string address, int port, string authorizationToken)
public async Task<BaseViewModel> GetQueryResponse(string address, int port)
{
var model = new BaseViewModel()
{
Expand All @@ -18,7 +18,7 @@ public async Task<BaseViewModel> GetQueryResponse(string address, int port, stri
model.MaxPlayers = serverInformation.MaxPlayers;
model.Players = serverInformation.Players;
model.QueuedPlayers = 0;
}catch
} catch

Check failure on line 21 in DiscordPlayerCountBot/Services/SteamQuery/SteamQueryService.cs

View workflow job for this annotation

GitHub Actions / dotnet_format

DiscordPlayerCountBot/Services/SteamQuery/SteamQueryService.cs#L21

WHITESPACE: Fix whitespace formatting. Replace 1 characters with '\r\n\s\s\s\s\s\s\s\s\s\s\s\s'.
{
throw;
}
Expand Down

0 comments on commit 9dd4ea8

Please sign in to comment.