Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Mar 20, 2022
1 parent 0e9503f commit fab8e99
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/config/normalize/lib/wild_wild_utils/merge.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ import { map } from './map.js'

// eslint-disable-next-line max-params
const pushUnshift = function (mapFunc, target, query, newValues, opts = {}) {
return map(target, query, (value) => mapFunc(value, newValues, opts), {
return map(target, query, (value) => mapFunc(value, newValues, opts.mutate), {
...opts,
entries: false,
})
}

const pushValue = function (value, newValues, { mutate }) {
const pushValue = function (value, newValues, mutate) {
if (!Array.isArray(value)) {
return newValues
}
Expand All @@ -27,7 +27,7 @@ const pushValue = function (value, newValues, { mutate }) {
// Like `set()` but push an array of values to the target array instead
export const push = pushUnshift.bind(undefined, pushValue)

const unshiftValue = function (value, newValues, { mutate }) {
const unshiftValue = function (value, newValues, mutate) {
if (!Array.isArray(value)) {
return newValues
}
Expand Down

0 comments on commit fab8e99

Please sign in to comment.