Skip to content

Commit 69fb412

Browse files
committed
cleanup
1 parent 130068d commit 69fb412

File tree

2 files changed

+2
-56
lines changed

2 files changed

+2
-56
lines changed

src/System.CommandLine.Tests/ResourceLocalizationTests.cs

Lines changed: 0 additions & 52 deletions
This file was deleted.

src/System.CommandLine/LocalizationResources.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,8 @@ internal static class LocalizationResources
1616
/// <summary>
1717
/// Interpolates values into a localized string similar to Command &apos;{0}&apos; expects a single argument but {1} were provided.
1818
/// </summary>
19-
internal static string ExpectsOneArgument(SymbolResult symbolResult) =>
20-
symbolResult is CommandResult commandResult
21-
? GetResourceString(Properties.Resources.CommandExpectsOneArgument, commandResult.Token.Value, symbolResult.Tokens.Count)
22-
: GetResourceString(Properties.Resources.OptionExpectsOneArgument, GetOptionName((OptionResult)symbolResult), symbolResult.Tokens.Count);
19+
internal static string ExpectsOneArgument(OptionResult optionResult)
20+
=> GetResourceString(Properties.Resources.OptionExpectsOneArgument, GetOptionName(optionResult), optionResult.Tokens.Count);
2321

2422
/// <summary>
2523
/// Interpolates values into a localized string similar to No argument was provided for Command &apos;{0}&apos;..

0 commit comments

Comments
 (0)