fix code smelt
continuous-integration/drone/push Build is passing Details

test_old_branch
Jules LASCRET 11 months ago
parent 69f9b3d404
commit 652dd53046

@ -1,26 +1,26 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace QwirkleClassLibrary namespace QwirkleClassLibrary
{ {
public struct Score public struct Score
{ {
private int PlayerScore { get; set; } private int PlayerScore { get; set; }
public string PlayerTag { get; } public string PlayerTag { get; }
public Score(Player? p) public Score(Player? p)
{ {
if (p == null) if (p == null)
{ {
throw new NullReferenceException(); throw new NullReferenceException("player");
} }
else else
{ PlayerScore = 0; { PlayerScore = 0;
PlayerTag = p.NameTag; PlayerTag = p.NameTag;
} }
} }
} }
} }

Loading…
Cancel
Save