Use nullorempty

This commit is contained in:
Jiiks 2015-12-23 09:45:12 +02:00
parent 9369be568b
commit ddbaf290b3
1 changed files with 2 additions and 1 deletions

View File

@ -29,7 +29,7 @@ namespace BetterDiscordWI.panels
{
Debug.Print(s);
if (!s.Contains("app-")) continue;
if (highestVersion == null)
if (String.IsNullOrEmpty(highestVersion))
{
highestVersion = s;
continue;
@ -41,6 +41,7 @@ namespace BetterDiscordWI.panels
}
}
tbPath.Text = highestVersion;
}