Skip to content

Commit 6a133ad

Browse files
committed
wip
1 parent 6df9776 commit 6a133ad

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Sources/CustomDump/Internal/Mirror.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ extension Mirror {
2727
}
2828

2929
func isMirrorEqual(_ lhs: Any, _ rhs: Any) -> Bool {
30-
let lhsType = type(of: lhs)
31-
if lhsType is AnyClass, lhsType == type(of: rhs), lhs as AnyObject === rhs as AnyObject {
32-
return true
33-
}
3430
guard let lhs = lhs as? any Equatable else {
31+
let lhsType = type(of: lhs)
32+
if lhsType is AnyClass, lhsType == type(of: rhs), lhs as AnyObject === rhs as AnyObject {
33+
return true
34+
}
3535
let lhsMirror = Mirror(customDumpReflecting: lhs)
3636
let rhsMirror = Mirror(customDumpReflecting: rhs)
3737
guard

0 commit comments

Comments
 (0)