client/build: fix JSCS warnings
This commit is contained in:
parent
d91352a3b0
commit
f63851e2cf
|
@ -135,7 +135,6 @@ function bundleJs(config) {
|
||||||
'superagent',
|
'superagent',
|
||||||
'mousetrap',
|
'mousetrap',
|
||||||
'js-cookie',
|
'js-cookie',
|
||||||
'page',
|
|
||||||
'nprogress',
|
'nprogress',
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -105,7 +105,6 @@ class Post extends events.EventTarget {
|
||||||
files.thumbnail = this._thumbnail;
|
files.thumbnail = this._thumbnail;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
let promise = this._id ?
|
let promise = this._id ?
|
||||||
api.put('/post/' + this._id, detail, files) :
|
api.put('/post/' + this._id, detail, files) :
|
||||||
api.post('/posts', detail, files);
|
api.post('/posts', detail, files);
|
||||||
|
@ -201,7 +200,7 @@ class Post extends events.EventTarget {
|
||||||
this._contentUrl =
|
this._contentUrl =
|
||||||
this._orig._contentUrl +
|
this._orig._contentUrl +
|
||||||
'?bypass-cache=' +
|
'?bypass-cache=' +
|
||||||
Math.round(Math.random()*1000);
|
Math.round(Math.random() * 1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
_updateFromResponse(response) {
|
_updateFromResponse(response) {
|
||||||
|
|
Loading…
Reference in New Issue