Skip to content

Commit

Permalink
Renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Mar 13, 2022
1 parent 60be65d commit 8552d6f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/config/normalize/lib/wild_wild_path_utils/include.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ export const include = function (
})
}

const pickEntry = function (classes, target, { path, value }) {
return set(target, path, value, { classes, mutate: false })
const pickEntry = function (classes, newTarget, { path, value }) {
return set(newTarget, path, value, { classes, mutate: false })
}

// Remove values matching a query
Expand All @@ -57,8 +57,8 @@ export const exclude = function (
)
}

const excludeEntry = function ({ classes, mutate }, target, { path }) {
return remove(target, path, { classes, mutate })
const excludeEntry = function ({ classes, mutate }, newTarget, { path }) {
return remove(newTarget, path, { classes, mutate })
}

// Modify a target object multiple times for each matched property.
Expand All @@ -71,7 +71,7 @@ const reduceParents = function (
return entries
.filter((entry) => shouldUseEntry(entry, target, condition))
.filter(hasNoParentSet)
.reduce((targetA, entry) => setFunc(targetA, entry, 0), newTarget)
.reduce((newTargetA, entry) => setFunc(newTargetA, entry, 0), newTarget)
}

const shouldUseEntry = function (entry, target, condition) {
Expand Down

0 comments on commit 8552d6f

Please sign in to comment.