@@ -39,7 +39,7 @@ extension SemanticVersion: LosslessStringConvertible {
39
39
40
40
41
41
extension SemanticVersion : Comparable {
42
- public static func < ( lhs: Self , rhs: Self ) -> Bool {
42
+ public static func < ( lhs: SemanticVersion , rhs: SemanticVersion ) -> Bool {
43
43
if lhs. major != rhs. major { return lhs. major < rhs. major }
44
44
if lhs. minor != rhs. minor { return lhs. minor < rhs. minor }
45
45
if lhs. patch != rhs. patch { return lhs. patch < rhs. patch }
@@ -57,12 +57,12 @@ extension SemanticVersion: Comparable {
57
57
58
58
59
59
extension SemanticVersion {
60
- public var isStable : Bool { preRelease. isEmpty && build. isEmpty }
61
- public var isPreRelease : Bool { !isStable }
62
- public var isMajorRelease : Bool { isStable && ( major > 0 && minor == 0 && patch == 0 ) }
63
- public var isMinorRelease : Bool { isStable && ( minor > 0 && patch == 0 ) }
64
- public var isPatchRelease : Bool { isStable && patch > 0 }
65
- public var isInitialRelease : Bool { self == . init( 0 , 0 , 0 ) }
60
+ public var isStable : Bool { return preRelease. isEmpty && build. isEmpty }
61
+ public var isPreRelease : Bool { return !isStable }
62
+ public var isMajorRelease : Bool { return isStable && ( major > 0 && minor == 0 && patch == 0 ) }
63
+ public var isMinorRelease : Bool { return isStable && ( minor > 0 && patch == 0 ) }
64
+ public var isPatchRelease : Bool { return isStable && patch > 0 }
65
+ public var isInitialRelease : Bool { return self == . init( 0 , 0 , 0 ) }
66
66
}
67
67
68
68
0 commit comments