Skip to content

Commit

Permalink
Explicit comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
benjie committed Apr 29, 2024
1 parent 5690546 commit 60eb1d2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions grafast/grafast/src/engine/executeBucket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,6 @@ export function executeBucket(
let forceIndexValue: GrafastError | null | undefined = undefined;
let rejectValue: GrafastError | null | undefined = undefined;
let indexFlags: ExecutionEntryFlags = NO_FLAGS;
// for (const $dep of step.dependencies) {
for (let i = 0, l = step.dependencies.length; i < l; i++) {
const $dep = step.dependencies[i];
const forbiddenFlags = step.dependencyForbiddenFlags[i];
Expand All @@ -622,7 +621,7 @@ export function executeBucket(
// If dep is inhibited and we do allow inhibited, but we're disallowed, use our onReject.
// If dep is not inhibited, but we're disallowed, use our onReject.
if (
onReject &&
onReject !== undefined &&
(disallowedFlags & (FLAG_INHIBITED | FLAG_ERROR)) === NO_FLAGS
) {
rejectValue ||= onReject;
Expand Down Expand Up @@ -856,7 +855,7 @@ export function executeBucket(
// If dep is inhibited and we do allow inhibited, but we're disallowed, use our onReject.
// If dep is not inhibited, but we're disallowed, use our onReject.
if (
onReject &&
onReject !== undefined &&
(disallowedFlags & (FLAG_INHIBITED | FLAG_ERROR)) === NO_FLAGS
) {
rejectValue ||= onReject;
Expand Down

0 comments on commit 60eb1d2

Please sign in to comment.