Skip to content
This repository was archived by the owner on Sep 8, 2020. It is now read-only.

Commit 0ff3b1e

Browse files
committed
Update TaskObject.js
1 parent 654993c commit 0ff3b1e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/Task/TaskObject.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ module.factory( 'Task', (BaseObject, $http) => {
2424
return this.cache('creating', () =>
2525
$q.when(this.uploading)
2626
.then( () => $http.post('/api/tasks', this) ) // uploading callback
27-
.then( response => return Object.assign(this, response.data) ) // creating callback
27+
.then( response => Object.assign(this, response.data) ) // creating callback
2828
);
2929
}
3030

@@ -33,7 +33,7 @@ module.factory( 'Task', (BaseObject, $http) => {
3333
return this.cache('updating', () =>
3434
$q.when(this.uploading)
3535
.then( () => $http.post(`/api/tasks/${this.id}`, this) ) // uploading callback
36-
.then( response => return Object.assign(this, response.data) ) // creating callback
36+
.then( response => Object.assign(this, response.data) ) // creating callback
3737
);
3838
}
3939

0 commit comments

Comments
 (0)