mirror of
https://github.com/mas-cli/mas
synced 2024-11-22 03:23:08 +00:00
🚨 Fix lint issue
This commit is contained in:
parent
a78b9b338b
commit
073ff08b87
1 changed files with 2 additions and 1 deletions
|
@ -30,7 +30,8 @@ extension SoftwareProduct {
|
|||
func isOutdatedWhenComparedTo(_ storeApp: SearchResult) -> Bool {
|
||||
// Only look at min OS version if we have one
|
||||
if let osVersion = Version(storeApp.minimumOsVersion) {
|
||||
let requiredVersion = OperatingSystemVersion(majorVersion: osVersion.major, minorVersion: osVersion.minor, patchVersion: osVersion.patch)
|
||||
let requiredVersion = OperatingSystemVersion(majorVersion: osVersion.major, minorVersion: osVersion.minor,
|
||||
patchVersion: osVersion.patch)
|
||||
// Don't consider an app outdated if the version in the app store requires a higher OS version.
|
||||
guard ProcessInfo.processInfo.isOperatingSystemAtLeast(requiredVersion) else {
|
||||
return false
|
||||
|
|
Loading…
Reference in a new issue