client/posts: fix JSCS complaint
This commit is contained in:
parent
603420a31d
commit
faf461419f
1 changed files with 3 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue