Skip to content

Commit 8ab7c14

Browse files
author
SlavaRa
committed
Replace 'string_value != null && string_value != string.Empty' by '!string.IsNullOrEmpty(string_value)'
1 parent ed9daac commit 8ab7c14

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

External/Tools/FDBuild/Mono/GetOptions/OptionDetails.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ public override string ToString()
252252
{
253253
string text1;
254254
string text2;
255-
bool flag1 = (this.LongForm != null) && (this.LongForm != string.Empty);
255+
bool flag1 = !string.IsNullOrEmpty(this.LongForm);
256256
if (this.OptionBundle.ParsingMode == OptionsParsingMode.Windows)
257257
{
258258
text2 = "/";
@@ -279,7 +279,7 @@ public override string ToString()
279279
this.optionHelp = this.optionHelp + "[+|-]";
280280
}
281281
this.optionHelp = this.optionHelp + ("\t" + this.ShortDescription);
282-
if ((this.AlternateForm != string.Empty) && (this.AlternateForm != null))
282+
if (!string.IsNullOrEmpty(this.AlternateForm))
283283
{
284284
this.optionHelp = this.optionHelp + (" [short form: " + text2 + this.AlternateForm + "]");
285285
}

0 commit comments

Comments
 (0)