Skip to content

Commit b0daa67

Browse files
committed
Fix use of optional pattern
1 parent 2307802 commit b0daa67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Foundation/NSXMLNode.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -919,7 +919,7 @@ public func <(lhs: XMLNode.Index, rhs: XMLNode.Index) -> Bool {
919919
return false
920920
case (_, nil):
921921
return true
922-
case (let lhsOffset, let rhsOffset):
922+
case (let lhsOffset?, let rhsOffset?):
923923
return lhsOffset < rhsOffset
924924
}
925925
}

0 commit comments

Comments
 (0)