Skip to content

Commit

Permalink
fix: remove console.log calls
Browse files Browse the repository at this point in the history
馃憖 left those in by mistake
  • Loading branch information
BellCubeDev committed Apr 21, 2024
1 parent 4373428 commit 4b22cb5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/core/finalize.ts
Expand Up @@ -65,6 +65,7 @@ function enterFinalize(
value: any
) {
let secondScope = null;

try {
if (scope.existingStateMap_) {
secondScope = enterScope(scope.immer_)
Expand All @@ -74,16 +75,14 @@ function enterFinalize(
value = createProxy(value, undefined)
}
}
const oldStateDEBUGGINGONLY = value[DRAFT_STATE]

value = finalize(scope, secondScope, value, [])

if (oldStateDEBUGGINGONLY) console.log("DEBUGGING!");
} finally {
if (secondScope) {
revokeScope(secondScope)
}
}

if (!scope.parent_) maybeFreeze(scope, value, false)
return value
}
Expand Down

0 comments on commit 4b22cb5

Please sign in to comment.