summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorrr- <rr-@sakuya.pl>2016-07-30 10:00:42 +0200
committerrr- <rr-@sakuya.pl>2016-07-30 13:43:15 +0200
commitf63851e2cfa2f2ab44437c3ba82dcd31ef4257a3 (patch)
treef8c5111408ff227dddfe6eebde509a2ebb03b894 /client
parentd91352a3b00d1bf05c8ed5272c775e48bb0a5c05 (diff)
client/build: fix JSCS warnings
Diffstat (limited to 'client')
-rw-r--r--client/build.js1
-rw-r--r--client/js/models/post.js3
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) {