Skip to content

Commit

Permalink
Improve code maintainability
Browse files Browse the repository at this point in the history
  • Loading branch information
araszka committed Dec 1, 2024
1 parent 26141b0 commit 54d4b14
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/Modules/RoundRankingModule/Models/PointsRepartition.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
/// </summary>
public class PointsRepartition : List<int>
{
public const string ModeScriptSetting = "S_PointsRepartition";
public const string DefaultValue = "10,6,4,3,2,1";
public static readonly string ModeScriptSetting = "S_PointsRepartition";
public static readonly string DefaultValue = "10,6,4,3,2,1";

public PointsRepartition()
{
Expand Down
2 changes: 1 addition & 1 deletion src/Modules/RoundRankingModule/Utils/RoundRankingUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public abstract class RoundRankingUtils
/// <param name="checkpoints"></param>
/// <returns></returns>
public static bool HasPlayerInFinish(List<CheckpointData> checkpoints) =>
checkpoints.Any(checkpoint => checkpoint.IsFinish);
checkpoints.Exists(checkpoint => checkpoint.IsFinish);

/// <summary>
/// Determines the winning team based on the given checkpoint data.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Collections.Concurrent;

namespace EvoSC.Modules.Official.ScoreboardModule.Interfaces;
namespace EvoSC.Modules.Official.ScoreboardModule.Interfaces;

public interface IScoreboardNicknamesService
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace EvoSC.Modules.Official.ScoreboardModule.Utils;

public class ScoreboardNicknameUtils
public static class ScoreboardNicknameUtils
{
/// <summary>
/// Converts the nickname repo to a ManiaScript array.
Expand Down

0 comments on commit 54d4b14

Please sign in to comment.