From faf461419f308a7ba3987dfc95b5964d9d8b86db Mon Sep 17 00:00:00 2001 From: rr- Date: Sun, 17 Jul 2016 21:15:50 +0200 Subject: [PATCH] client/posts: fix JSCS complaint --- client/js/models/post.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/js/models/post.js b/client/js/models/post.js index 849651d..fad9f0c 100644 --- a/client/js/models/post.js +++ b/client/js/models/post.js @@ -6,8 +6,9 @@ const events = require('../events.js'); const CommentList = require('./comment_list.js'); function _arraysDiffer(source1, source2) { - return [...source1].filter(value => !source2.includes(value)).length > 0 - || [...source2].filter(value => !source1.includes(value)).length > 0; + return ( + [...source1].filter(value => !source2.includes(value)).length > 0 || + [...source2].filter(value => !source1.includes(value)).length > 0); } class Post extends events.EventTarget {