Skip to content

Commit 07a8385

Browse files
committed
lint cleanup
1 parent 62699e9 commit 07a8385

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/utils.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,9 @@ import decode from 'jwt-decode'
77
import inflection from 'inflection'
88
import Vue from 'vue'
99
import fastCopy from 'fast-copy'
10-
import _isPlainObject from 'lodash/isPlainObject'
1110
import _isObject from 'lodash/isObject'
1211
import _trim from 'lodash/trim'
1312
import _omit from 'lodash/omit'
14-
import _get from 'lodash/get'
1513
import ObjectID from 'bson-objectid'
1614
import { globalModels as models } from './service-module/global-models'
1715
import stringify from 'fast-json-stable-stringify'
@@ -450,7 +448,6 @@ export function mergeWithAccessors(
450448
// Do not use fastCopy directly on a feathers-vuex BaseModel instance to keep from breaking reactivity.
451449
if (isObject && !isFeathersVuexInstance) {
452450
try {
453-
const sourceObject = source[key]
454451
dest[key] = fastCopy(source[key])
455452
} catch (err) {
456453
if (!err.message.includes('getter')) {
@@ -486,8 +483,9 @@ export function mergeWithAccessors(
486483
// Assign values
487484
// Do not allow sharing of deeply-nested objects between instances
488485
// Potentially breaks accessors on nested data. Needs recursion if this is an issue
486+
let value
489487
if (_isObject(sourceDesc.value) && !isBaseModelInstance(sourceDesc.value)) {
490-
var value = fastCopy(sourceDesc.value)
488+
value = fastCopy(sourceDesc.value)
491489
}
492490
dest[key] = value || sourceDesc.value
493491
})

0 commit comments

Comments
 (0)