diff --git a/Packages/vChewing_UpdateSputnik/Sources/UpdateSputnik/UpdateSputnik.swift b/Packages/vChewing_UpdateSputnik/Sources/UpdateSputnik/UpdateSputnik.swift index af849f6a..5f8906d2 100644 --- a/Packages/vChewing_UpdateSputnik/Sources/UpdateSputnik/UpdateSputnik.swift +++ b/Packages/vChewing_UpdateSputnik/Sources/UpdateSputnik/UpdateSputnik.swift @@ -105,7 +105,8 @@ public class UpdateSputnik { let intCurrentVersion = Int(dicMainBundle[kCFBundleVersionKey as String] as? String ?? ""), let strCurrentVersionShortened = dicMainBundle["CFBundleShortVersionString"] as? String else { return } // Shouldn't happen. - if intRemoteVersion <= intCurrentVersion, isCurrentCheckForced { + if intRemoteVersion <= intCurrentVersion { + guard isCurrentCheckForced else { return } let alert = NSAlert() alert.messageText = NSLocalizedString("Update Check Completed", comment: "") alert.informativeText = NSLocalizedString("You are already using the latest version.", comment: "")