🚨 Fix lint issue

This commit is contained in:
Ben Chatelain 2021-09-30 21:25:43 -06:00
parent a78b9b338b
commit 073ff08b87

View file

@ -30,7 +30,8 @@ extension SoftwareProduct {
func isOutdatedWhenComparedTo(_ storeApp: SearchResult) -> Bool { func isOutdatedWhenComparedTo(_ storeApp: SearchResult) -> Bool {
// Only look at min OS version if we have one // Only look at min OS version if we have one
if let osVersion = Version(storeApp.minimumOsVersion) { 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. // Don't consider an app outdated if the version in the app store requires a higher OS version.
guard ProcessInfo.processInfo.isOperatingSystemAtLeast(requiredVersion) else { guard ProcessInfo.processInfo.isOperatingSystemAtLeast(requiredVersion) else {
return false return false