Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Mar 13, 2022
1 parent f05af53 commit 79857b4
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/config/normalize/lib/wild_wild_path/iterate/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,10 @@ const iterateChildren = function* ({ entries, index, parents, opts }) {
return
}

const nextIndex = index + 1
const indexA = index + 1

if (childEntries.length === 1) {
yield* iterateLevel({
entries: childEntries,
index: nextIndex,
parents,
opts,
})
yield* iterateLevel({ entries: childEntries, index: indexA, parents, opts })
return
}

Expand All @@ -111,7 +106,7 @@ const iterateChildren = function* ({ entries, index, parents, opts }) {
for (const childEntriesA of childEntriesGroups) {
yield* iterateLevel({
entries: childEntriesA,
index: nextIndex,
index: indexA,
parents,
opts,
})
Expand Down

0 comments on commit 79857b4

Please sign in to comment.