Skip to content

Commit 1577871

Browse files
committed
Remove unused variable
1 parent bef5f3d commit 1577871

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/service-module/make-base-model.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ export default function makeBaseModel(options: FeathersVuexOptions) {
8181

8282
public constructor(data, options: BaseModelInstanceOptions) {
8383
// You have to pass at least an empty object to get a tempId.
84-
const originalData = data
8584
data = data || {}
8685
options = Object.assign({}, defaultOptions, options)
8786

@@ -158,7 +157,6 @@ export default function makeBaseModel(options: FeathersVuexOptions) {
158157
}
159158

160159
// Add the item to the store
161-
// Make sure originalData wasn't an empty object.
162160
if (!options.clone && options.commit !== false && store) {
163161
_commit.call(this.constructor, 'addItem', this)
164162
}

0 commit comments

Comments
 (0)