Skip to content

Commit

Permalink
refactor: Cleanup #10348
Browse files Browse the repository at this point in the history
  • Loading branch information
gibson042 committed Dec 3, 2024
1 parent c6ae873 commit 50fda75
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/cosmic-swingset/src/computron-counter.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,7 @@ export function computronCounter(
const defaultCleanupBudget = remainingCleanups.default;
let cleanupStarted = false;
let cleanupDone = false;
const cleanupPossible =
Object.values(remainingCleanups).length > 0
? Object.values(remainingCleanups).some(n => n > 0)
: defaultCleanupBudget > 0;
const cleanupPossible = Object.values(remainingCleanups).some(n => n > 0);
if (!cleanupPossible) cleanupDone = true;
/** @type {() => (false | import('@agoric/swingset-vat').CleanupBudget)} */
const allowCleanup = () =>
Expand Down

0 comments on commit 50fda75

Please sign in to comment.