Skip to content

Commit

Permalink
chore(no-loop): use Array.from instead of spread operator
Browse files Browse the repository at this point in the history
  • Loading branch information
marstamm committed Jul 1, 2024
1 parent ea4c71d commit c7b65fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rules/camunda-cloud/no-loop.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function simplifyGraph(flowElements) {
connectNodes(graph, node);
}

return [ ...outgoing.keys() ].map(key => graph.get(key));
return Array.from(outgoing.keys(), key => graph.get(key));
});

// Clean up all references to removed elements
Expand Down

0 comments on commit c7b65fc

Please sign in to comment.