Skip to content

Commit aebca51

Browse files
committed
Reversed warning fix for macOS which doesn't build on Linux.
Not quite sure what's going on here - I thought I was testing with Swift 4.1 on both platforms, but it appears not...
1 parent d6245a1 commit aebca51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Docopt/LeafPattern.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ func ==(lhs: LeafPattern, rhs: LeafPattern) -> Bool {
121121
} else if let lval = lhs.value as? Int, let rval = rhs.value as? Int {
122122
valEqual = lval == rval
123123
} else {
124-
valEqual = lhs.value as AnyObject === rhs.value as AnyObject
124+
valEqual = lhs.value as? AnyObject === rhs.value as? AnyObject
125125
}
126126
return lhs.name == rhs.name && valEqual
127127
}

0 commit comments

Comments
 (0)