Skip to content

Commit f7b20ea

Browse files
committed
Remove unnecessary variable
1 parent b1ffef8 commit f7b20ea

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

index.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,14 @@ export default function diff(
5757
!richTypes[Object.getPrototypeOf(objKey)?.constructor?.name] &&
5858
(!options.cyclesFix || !_stack.includes(objKey))
5959
) {
60-
const nestedDiffs = diff(
61-
objKey,
62-
newObjKey,
63-
options,
64-
options.cyclesFix ? _stack.concat([objKey]) : [],
65-
);
6660
diffs.push.apply(
6761
diffs,
68-
nestedDiffs.map((difference) => {
62+
diff(
63+
objKey,
64+
newObjKey,
65+
options,
66+
options.cyclesFix ? _stack.concat([objKey]) : [],
67+
).map((difference) => {
6968
difference.path.unshift(path);
7069
return difference;
7170
}),

0 commit comments

Comments
 (0)