From 652dd5304655b0bf89ef42171837e2e23510570d Mon Sep 17 00:00:00 2001 From: Jules LASCRET Date: Thu, 16 May 2024 09:28:48 +0200 Subject: [PATCH] fix code smelt --- Qwirkle/QwirkleClassLibrary/Score.cs | 52 ++++++++++++++-------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/Qwirkle/QwirkleClassLibrary/Score.cs b/Qwirkle/QwirkleClassLibrary/Score.cs index 4bb3253..db38754 100644 --- a/Qwirkle/QwirkleClassLibrary/Score.cs +++ b/Qwirkle/QwirkleClassLibrary/Score.cs @@ -1,26 +1,26 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace QwirkleClassLibrary -{ - public struct Score - { - private int PlayerScore { get; set; } - public string PlayerTag { get; } - - public Score(Player? p) - { - if (p == null) - { - throw new NullReferenceException(); - } - else - { PlayerScore = 0; - PlayerTag = p.NameTag; - } - } - } -} +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace QwirkleClassLibrary +{ + public struct Score + { + private int PlayerScore { get; set; } + public string PlayerTag { get; } + + public Score(Player? p) + { + if (p == null) + { + throw new NullReferenceException("player"); + } + else + { PlayerScore = 0; + PlayerTag = p.NameTag; + } + } + } +}