Skip to content

Commit

Permalink
Run swift-format
Browse files Browse the repository at this point in the history
  • Loading branch information
stephencelis authored and actions-user committed Oct 25, 2021
1 parent c393756 commit 25292d6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Sources/CustomDump/Diff.swift
Original file line number Diff line number Diff line change
Expand Up @@ -317,12 +317,15 @@ public func diff<T>(_ lhs: T, _ rhs: T, format: DiffFormat = .default) -> String
to: &out
)
} else {
let showObjectIdentifiers = lhsItem != rhsItem
let showObjectIdentifiers =
lhsItem != rhsItem
&& isMirrorEqual(Array(lhsMirror.children), Array(rhsMirror.children))
let lhsMirror = showObjectIdentifiers
let lhsMirror =
showObjectIdentifiers
? Mirror(lhs, children: [("_", lhsItem)] + lhsMirror.children, displayStyle: .class)
: lhsMirror
let rhsMirror = showObjectIdentifiers
let rhsMirror =
showObjectIdentifiers
? Mirror(rhs, children: [("_", rhsItem)] + rhsMirror.children, displayStyle: .class)
: rhsMirror
visitedItems.insert(lhsItem)
Expand Down

0 comments on commit 25292d6

Please sign in to comment.