Skip to content

Commit ba227dc

Browse files
committed
lint
1 parent 7dbf367 commit ba227dc

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/module/mutations.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,7 @@ export default function (userState: object): AnyObject {
7474
},
7575
PATCH_DOC (state, patches) {
7676
// Get the state prop ref
77-
let ref = state._conf.statePropName
78-
? state[state._conf.statePropName]
79-
: state
77+
let ref = state._conf.statePropName ? state[state._conf.statePropName] : state
8078
if (state._conf.firestoreRefType.toLowerCase() === 'collection') {
8179
ref = ref[patches.id]
8280
}
@@ -106,16 +104,14 @@ export default function (userState: object): AnyObject {
106104
}
107105
},
108106
DELETE_PROP (state, path) {
109-
const searchTarget = state._conf.statePropName
110-
? state[state._conf.statePropName]
111-
: state
107+
const searchTarget = state._conf.statePropName ? state[state._conf.statePropName] : state
112108
const propArr = path.split('.')
113109
const target = propArr.pop()
114110
if (!propArr.length) {
115111
return this._vm.$delete(searchTarget, target)
116112
}
117113
const ref = getDeepRef(searchTarget, propArr.join('.'))
118114
return this._vm.$delete(ref, target)
119-
}
115+
},
120116
}
121117
}

0 commit comments

Comments
 (0)