diff options
| author | rr- <rr-@sakuya.pl> | 2016-07-30 10:00:42 +0200 |
|---|---|---|
| committer | rr- <rr-@sakuya.pl> | 2016-07-30 13:43:15 +0200 |
| commit | f63851e2cfa2f2ab44437c3ba82dcd31ef4257a3 (patch) | |
| tree | f8c5111408ff227dddfe6eebde509a2ebb03b894 | |
| parent | d91352a3b00d1bf05c8ed5272c775e48bb0a5c05 (diff) | |
client/build: fix JSCS warnings
| -rw-r--r-- | client/build.js | 1 | ||||
| -rw-r--r-- | client/js/models/post.js | 3 |
2 files changed, 1 insertions, 3 deletions
diff --git a/client/build.js b/client/build.js index c70eec4..5b84d21 100644 --- a/client/build.js +++ b/client/build.js @@ -135,7 +135,6 @@ function bundleJs(config) { 'superagent', 'mousetrap', 'js-cookie', - 'page', 'nprogress', ]; diff --git a/client/js/models/post.js b/client/js/models/post.js index d089c87..2f19e82 100644 --- a/client/js/models/post.js +++ b/client/js/models/post.js @@ -105,7 +105,6 @@ class Post extends events.EventTarget { files.thumbnail = this._thumbnail; } - let promise = this._id ? api.put('/post/' + this._id, detail, files) : api.post('/posts', detail, files); @@ -201,7 +200,7 @@ class Post extends events.EventTarget { this._contentUrl = this._orig._contentUrl + '?bypass-cache=' + - Math.round(Math.random()*1000); + Math.round(Math.random() * 1000); } _updateFromResponse(response) { |