client/posts: fix JSCS complaint

This commit is contained in:
rr- 2016-07-17 21:15:50 +02:00
parent 603420a31d
commit faf461419f

View file

@ -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 {