Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
GravityWolfNotAmused committed Jan 15, 2024
1 parent 0305f8c commit f7efcf2
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion DiscordPlayerCountBot/Configuration/DockerConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ public class DockerConfiguration : LoggableClass, IConfigurable
{
public IServiceProvider Services { get; set; }

public DockerConfiguration(IServiceProvider services)
public DockerConfiguration(IServiceProvider services)
{
Services = services;
}
Expand Down
4 changes: 2 additions & 2 deletions DiscordPlayerCountBot/Extensions/StringExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@

using Microsoft.VisualBasic;
using Microsoft.VisualBasic;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PlayerCountBot.Extensions
namespace PlayerCountBot.Extensions
{
public static class StringExtensions
{
Expand Down
2 changes: 1 addition & 1 deletion DiscordPlayerCountBot/Logging/LoggableClass.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public void Warn(string message, string? id = null)
Log.Warning(BuildLogMessage(id, GetType().Name, message));
}

public void Error(string message, string? id = null, Exception ? exception = null)
public void Error(string message, string? id = null, Exception? exception = null)
{
Log.Error(BuildLogMessage(id, GetType().Name, message), exception);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
public interface IServerInformationProvider
{

bool WasLastExecutionAFailure { get; set; }
Exception? LastException { get; set; }
Task<BaseViewModel?> GetServerInformation(BotInformation information, Dictionary<string, string> applicationVariables);
Expand Down
4 changes: 2 additions & 2 deletions DiscordPlayerCountBot/Providers/RconProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class RconProvider : ServerInformationProvider
{
private readonly RconService Service;

public RconProvider(RconService service)
public RconProvider(RconService service)
{
Service = service;
}
Expand All @@ -27,7 +27,7 @@ public override DataProvider GetRequiredProviderType()
{
throw new ConfigurationException($"Bot: {information.Name} must have RconServiceName specified in it's config. {values}");
}

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 Down
2 changes: 1 addition & 1 deletion DiscordPlayerCountBot/Providers/SteamProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public override DataProvider GetRequiredProviderType()
if (!string.IsNullOrEmpty(serverTime))
{
model.Time = serverTime;

if (model.Time.TryGetSunMoonPhase(information.SunriseHour, information.SunsetHour, out var sunMoon))
{
model.SunMoon = sunMoon;
Expand Down
2 changes: 1 addition & 1 deletion DiscordPlayerCountBot/Providers/SteamQueryProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public override DataProvider GetRequiredProviderType()
}

HandleLastException(information);

return response;
}
catch (Exception e)
Expand Down

0 comments on commit f7efcf2

Please sign in to comment.