File tree Expand file tree Collapse file tree 1 file changed +5
-17
lines changed
src/System.CommandLine/Parsing Expand file tree Collapse file tree 1 file changed +5
-17
lines changed Original file line number Diff line number Diff line change @@ -63,24 +63,12 @@ protected internal ValidationMessages ValidationMessages
63
63
64
64
internal void AddToken ( Token token ) => _tokens . Add ( token ) ;
65
65
66
- internal ArgumentResult GetOrCreateDefaultArgumentResult ( Argument argument )
67
- {
68
- return _defaultArgumentValues . GetOrAdd (
66
+ internal ArgumentResult GetOrCreateDefaultArgumentResult ( Argument argument ) =>
67
+ _defaultArgumentValues . GetOrAdd (
69
68
argument ,
70
- arg =>
71
- {
72
- var argumentResult = new ArgumentResult (
73
- argument ,
74
- this ) ;
75
-
76
- if ( arg is Argument a )
77
- {
78
- a . GetDefaultValue ( argumentResult ) ;
79
- }
80
-
81
- return argumentResult ;
82
- } ) ;
83
- }
69
+ arg => new ArgumentResult (
70
+ argument ,
71
+ this ) ) ;
84
72
85
73
internal bool UseDefaultValueFor ( IArgument argument )
86
74
{
You can’t perform that action at this time.
0 commit comments