mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
Use an arrow function inside forEach() instead of an anonymous function
Suggested by deepcode.ai.
This commit is contained in:
parent
06515559a6
commit
b2fee6a6c1
5 changed files with 9 additions and 9 deletions
|
|
@ -17,7 +17,7 @@ RulesHelper = {
|
|||
const matchingMap = this.buildMatchingFieldsMap(activity, matchingFields);
|
||||
const matchingTriggers = Triggers.find(matchingMap);
|
||||
const matchingRules = [];
|
||||
matchingTriggers.forEach(function(trigger) {
|
||||
matchingTriggers.forEach(trigger => {
|
||||
const rule = trigger.getRule();
|
||||
// Check that for some unknown reason there are some leftover triggers
|
||||
// not connected to any rules
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue