From bbfe7291c4055713495bcf203f954d83bb758a7a Mon Sep 17 00:00:00 2001 From: Alexis DRAI Date: Tue, 20 Sep 2022 12:07:00 +0200 Subject: [PATCH] :adhesive_bandage: Fix code smell --- Sources/Model/PlayerManager.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Sources/Model/PlayerManager.cs b/Sources/Model/PlayerManager.cs index a23910f..806ef4b 100644 --- a/Sources/Model/PlayerManager.cs +++ b/Sources/Model/PlayerManager.cs @@ -82,7 +82,9 @@ namespace Model { if (player is null) { - throw new ArgumentNullException(nameof(player), "param should not be null"); + throw new ArgumentNullException(nameof(after), "param should not be null"); + // could also be because of before, but one param had to be chosen as an example + // and putting "player" there was raising a major code smell } } Remove(before);