client/posts: fix JSCS complaint

This commit is contained in:
rr- 2016-07-17 21:15:50 +02:00
parent 603420a31d
commit faf461419f
1 changed files with 3 additions and 2 deletions

View File

@ -6,8 +6,9 @@ const events = require('../events.js');
const CommentList = require('./comment_list.js'); const CommentList = require('./comment_list.js');
function _arraysDiffer(source1, source2) { function _arraysDiffer(source1, source2) {
return [...source1].filter(value => !source2.includes(value)).length > 0 return (
|| [...source2].filter(value => !source1.includes(value)).length > 0; [...source1].filter(value => !source2.includes(value)).length > 0 ||
[...source2].filter(value => !source1.includes(value)).length > 0);
} }
class Post extends events.EventTarget { class Post extends events.EventTarget {