Skip to content

Commit

Permalink
Fix stack overflow when comparing two nil [String:Any]? objects (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexWoodblock authored and torchhound committed Jul 10, 2019
1 parent 43deb88 commit b014422
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion LaunchDarkly/LaunchDarkly/Extensions/Dictionary.swift
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,11 @@ extension Optional where Wrapped == [String: Any] {
public static func == (lhs: [String: Any]?, rhs: [String: Any]?) -> Bool {
guard let lhs = lhs
else {
return rhs == nil
guard let _ = rhs
else {
return true
}
return false
}
guard let rhs = rhs
else {
Expand Down

0 comments on commit b014422

Please sign in to comment.