Skip to content

Commit 6bd8635

Browse files
committed
[SE-0121] remove usage of optional < operator
1 parent f431c66 commit 6bd8635

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Utility/Git.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public class Git {
101101

102102
@noreturn public class func checkGitVersion(_ error: Swift.Error) throws {
103103
// Git 2.0 or higher is required
104-
if Git.majorVersionNumber < 2 {
104+
if let majorVersion = Git.majorVersionNumber, majorVersion < 2 {
105105
// FIXME: This does not belong here.
106106
print("error: ", Error.obsoleteGitVersion)
107107
exit(1)

0 commit comments

Comments
 (0)