Skip to content

Commit

Permalink
chore: fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
cj-young committed May 13, 2024
1 parent 688080d commit 285529d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/logic/iterateFieldsByAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const iterateFieldsByAction = (
fields: FieldRefs,
action: (ref: Ref, name: string) => 1 | undefined | void,
fieldsNames?: Set<InternalFieldName> | InternalFieldName[] | 0,
abortEarly: boolean = true,
abortEarly = true,
iterateRefs?: boolean,
) => {
for (const key of fieldsNames || Object.keys(fields)) {
Expand All @@ -21,7 +21,9 @@ const iterateFieldsByAction = (
for (const ref of _f.refs) {
shouldAbort = (!!action(ref, key) && abortEarly) || shouldAbort;
}
if (shouldAbort) break;
if (shouldAbort) {
break;
}
} else if (
_f.refs &&
_f.refs[0] &&
Expand Down

0 comments on commit 285529d

Please sign in to comment.