From f63851e2cfa2f2ab44437c3ba82dcd31ef4257a3 Mon Sep 17 00:00:00 2001 From: rr- Date: Sat, 30 Jul 2016 10:00:42 +0200 Subject: [PATCH] client/build: fix JSCS warnings --- client/build.js | 1 - client/js/models/post.js | 3 +-- 2 files changed, 1 insertion(+), 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) {