@@ -128,13 +128,13 @@ private void ParseSwitchArguments(Arguments arguments, NameValueCollection switc
128
128
private void AddAuthentication ( Arguments arguments )
129
129
{
130
130
var username = environment . GetEnvironmentVariable ( "GITVERSION_REMOTE_USERNAME" ) ;
131
- if ( ! string . IsNullOrWhiteSpace ( username ) )
131
+ if ( ! StringExtensions . IsNullOrWhiteSpace ( username ) )
132
132
{
133
133
arguments . Authentication . Username = username ;
134
134
}
135
135
136
136
var password = environment . GetEnvironmentVariable ( "GITVERSION_REMOTE_PASSWORD" ) ;
137
- if ( ! string . IsNullOrWhiteSpace ( password ) )
137
+ if ( ! StringExtensions . IsNullOrWhiteSpace ( password ) )
138
138
{
139
139
arguments . Authentication . Password = password ;
140
140
}
@@ -362,7 +362,7 @@ private static void ParseShowVariable(Arguments arguments, string value, string
362
362
{
363
363
string versionVariable = null ;
364
364
365
- if ( ! string . IsNullOrWhiteSpace ( value ) )
365
+ if ( ! StringExtensions . IsNullOrWhiteSpace ( value ) )
366
366
{
367
367
versionVariable = VersionVariables . AvailableVariables . SingleOrDefault ( av => av . Equals ( value . Replace ( "'" , "" ) , StringComparison . CurrentCultureIgnoreCase ) ) ;
368
368
}
@@ -563,7 +563,7 @@ private static NameValueCollection CollectSwitchesAndValuesFromArguments(IList<s
563
563
else if ( currentKey != null )
564
564
{
565
565
// And if the current switch does not have a value yet and the value is not itself a switch, set its value to this argument.
566
- if ( string . IsNullOrEmpty ( switchesAndValues [ currentKey ] ) )
566
+ if ( StringExtensions . IsNullOrEmpty ( switchesAndValues [ currentKey ] ) )
567
567
{
568
568
switchesAndValues [ currentKey ] = arg ;
569
569
}
0 commit comments