1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-04-09 06:15:49 +02:00

Stealthfix a bug with CommandLineArgs.ToString causing an exception if there are no args

This commit is contained in:
chylex 2017-01-10 21:58:17 +01:00
parent 62d18e010a
commit 82d70b2d7f

View File

@ -105,7 +105,7 @@ public override string ToString(){
build.Append(kvp.Key).Append(" \"").Append(kvp.Value).Append("\" ");
}
return build.Remove(build.Length-1, 1).ToString();
return build.Length == 0 ? string.Empty : build.Remove(build.Length-1, 1).ToString();
}
}
}