mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 11:20:57 -06:00
DEV: removes _.some from codebase (#6627)
This commit is contained in:
parent
e860c8b844
commit
0a8227d19c
@ -24,7 +24,8 @@ export default Post.extend({
|
||||
return false;
|
||||
}
|
||||
lastRevisedAt = Date.parse(lastRevisedAt);
|
||||
return _.some(this.get("post_actions"), function(postAction) {
|
||||
const postActions = this.get("post_actions") || [];
|
||||
return postActions.some(postAction => {
|
||||
return Date.parse(postAction.created_at) < lastRevisedAt;
|
||||
});
|
||||
},
|
||||
|
@ -163,7 +163,7 @@ NavItem.reopenClass({
|
||||
|
||||
if (
|
||||
args.filterMode &&
|
||||
!_.some(items, i => i.indexOf(args.filterMode) !== -1)
|
||||
!items.some(i => i.indexOf(args.filterMode) !== -1)
|
||||
) {
|
||||
items.push(args.filterMode);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user