Use an arrow function inside forEach() instead of an anonymous function

Suggested by deepcode.ai.
This commit is contained in:
Marc Hartmayer 2020-05-24 12:37:54 +02:00
parent 06515559a6
commit b2fee6a6c1
5 changed files with 9 additions and 9 deletions

View file

@ -365,12 +365,12 @@ BlazeComponent.extendComponent({
};
currentBoard
.cardsInInterval(start.toDate(), end.toDate())
.forEach(function(card) {
.forEach(card => {
pushEvent(card);
});
currentBoard
.cardsDueInBetween(start.toDate(), end.toDate())
.forEach(function(card) {
.forEach(card => {
pushEvent(
card,
`${card.title} ${TAPi18n.__('card-due')}`,