client/posts: fix JSCS complaint
This commit is contained in:
parent
603420a31d
commit
faf461419f
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue