Skip to content

Commit

Permalink
clean up docs and errant console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
floodfx committed Feb 14, 2022
1 parent a5145bf commit 69b30d8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/server/templates/diff.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@

// returns a Parts tree that only contains the differences between

import { Parts } from ".";

// returns a Parts tree that only contains the differences between
// the oldParts tree and the newParts tree
export function deepDiff(oldParts: Parts, newParts: Parts): Parts {
let diff: Parts = {}
Expand Down Expand Up @@ -39,7 +37,6 @@ export function deepDiff(oldParts: Parts, newParts: Parts): Parts {
const newPart = newParts[key] as Parts;
// diff based on object type
if (typeof newPart === 'object' && typeof oldPart === 'object') {
console.log("recursing on", key)
const maybeDiff = deepDiff(oldPart, newPart);
// keep if any keys are different
if (Object.keys(maybeDiff).length > 0) {
Expand Down

0 comments on commit 69b30d8

Please sign in to comment.