fix: resolve codacy high severity findings

This commit is contained in:
lucaronin
2026-05-26 10:11:53 +02:00
parent ae7ee4064f
commit fbb51a0b4c
160 changed files with 1759 additions and 1027 deletions

View File

@@ -152,7 +152,7 @@ function releaseRecoveryState(
const state = Reflect.get(view, DISPATCH_RECOVERY_STATE_KEY)
if (!isDispatchRecoveryState(state) || state.originalDispatch !== originalDispatch) return
state.recoverDocuments = state.recoverDocuments.filter((entry) => entry.token !== token)
state.recoverDocuments = state.recoverDocuments.filter((entry) => !Object.is(entry.token, token))
state.refCount -= 1
if (state.refCount > 0) return