Skip to content

Commit 3648d9f

Browse files
committed
(maint) Remove unnecessary new modifier from Reset method
Remove the redundant 'new' modifier from the Reset method in ChocolateyLicenseCommandSpecs.cs. The method does not hide any base member, so the 'new' keyword was unnecessary and could confuse readers or suggest unintended behavior. Simplifying the declaration improves code clarity and eliminates a potential compiler warning.
1 parent 4a8c9a2 commit 3648d9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/chocolatey.tests/infrastructure.app/commands/ChocolateyLicenseCommandSpecs.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public override void Because()
7979
_because = () => Command.ParseAdditionalArguments(_unparsedArgs, Configuration);
8080
}
8181

82-
public new void Reset()
82+
public void Reset()
8383
{
8484
_unparsedArgs.Clear();
8585
}

0 commit comments

Comments
 (0)