Fix suffixed version newer than release version

This commit is contained in:
ChsBuffer
2021-05-11 17:17:51 +08:00
parent 2051dd1bfe
commit 4cc5998440

View File

@@ -87,7 +87,7 @@ namespace Netch.Models.GitHubRelease
if (versionComparison != 0)
return versionComparison;
var suffixExistComparison = (Suffix != null ? 1 : 0) - (other.Suffix != null ? 1 : 0);
var suffixExistComparison = (Suffix == null ? 1 : 0) - (other.Suffix == null ? 1 : 0);
if (suffixExistComparison != 0)
return suffixExistComparison;