File tree Expand file tree Collapse file tree
src/vstest.console/Processors/Utilities Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,12 +18,19 @@ internal class ArgumentProcessorUtilities
1818 /// <param name="argumentSeparator">Argument separator.</param>
1919 /// <param name="exceptionMessage">Exception Message.</param>
2020 /// <returns>Argument list.</returns>
21- public static string [ ] GetArgumentList ( string ? rawArgument , char [ ] argumentSeparator , string exceptionMessage )
21+ public static string [ ] GetArgumentList ( string rawArgument , char [ ] argumentSeparator , string exceptionMessage )
2222 {
23- var argumentList = rawArgument ? . Split ( argumentSeparator , StringSplitOptions . RemoveEmptyEntries ) ;
23+ var argumentList = rawArgument . Split ( argumentSeparator , StringSplitOptions . RemoveEmptyEntries ) ;
2424
2525 // Throw error in case of invalid argument.
26- return argumentList == null || argumentList . Length <= 0 ? throw new CommandLineException ( exceptionMessage ) : argumentList ;
26+ if ( argumentList . Length <= 0 )
27+ {
28+ throw new CommandLineException ( exceptionMessage ) ;
29+ }
30+ else
31+ {
32+ return argumentList ;
33+ }
2734 }
2835
2936 /// <summary>
You can’t perform that action at this time.
0 commit comments