From 5baa25cc809ca8af75acd053c7da6f040c69ea5d Mon Sep 17 00:00:00 2001 From: MSWS Date: Wed, 30 Oct 2024 15:23:00 -0700 Subject: [PATCH] Slight cleanup --- src/CS2/Leaderboard/LeaderboardCommand.cs | 2 +- src/CS2/Leaderboard/MSLeaderboard.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CS2/Leaderboard/LeaderboardCommand.cs b/src/CS2/Leaderboard/LeaderboardCommand.cs index edf55c9..cd1ebe0 100644 --- a/src/CS2/Leaderboard/LeaderboardCommand.cs +++ b/src/CS2/Leaderboard/LeaderboardCommand.cs @@ -8,7 +8,7 @@ namespace Leaderboard; public class LeaderboardCommand(ILeaderboard leaderboard) : ICommand { public string Name => "css_lb"; - public string[] Aliases { get; } = ["css_lb", "css_leaderboard"]; + public string[] Aliases => ["css_lb", "css_leaderboard"]; private (int, double)[]? cachedLeaderboard; public async Task Execute(PlayerWrapper? executor, diff --git a/src/CS2/Leaderboard/MSLeaderboard.cs b/src/CS2/Leaderboard/MSLeaderboard.cs index 4ee0c88..a142bbf 100644 --- a/src/CS2/Leaderboard/MSLeaderboard.cs +++ b/src/CS2/Leaderboard/MSLeaderboard.cs @@ -33,7 +33,7 @@ public void Start(BasePlugin? plugin, bool hotReload) { while (await reader.ReadAsync()) result.Add((reader.GetInt32(0), reader.GetDouble(1))); - + return result; } } \ No newline at end of file