From 4cc5998440a4cb2f245b319dd54749b92618f17a Mon Sep 17 00:00:00 2001 From: ChsBuffer <33744752+chsbuffer@users.noreply.github.com> Date: Tue, 11 May 2021 17:17:51 +0800 Subject: [PATCH] Fix suffixed version newer than release version --- Netch/Models/GitHubRelease/SuffixVersion.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Netch/Models/GitHubRelease/SuffixVersion.cs b/Netch/Models/GitHubRelease/SuffixVersion.cs index caaf5f26..954a9654 100644 --- a/Netch/Models/GitHubRelease/SuffixVersion.cs +++ b/Netch/Models/GitHubRelease/SuffixVersion.cs @@ -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;