Skip to content

Commit

Permalink
eslint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
beru committed Dec 16, 2024
1 parent cdd32aa commit e3e577e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/dagre.js
Original file line number Diff line number Diff line change
Expand Up @@ -1369,7 +1369,7 @@ dagre.layout = (nodes, edges, layout, state) => {
// https://stackoverflow.com/a/62854671
function perm(array, length) {
return array.flatMap((v, i) => length > 1
? perm(array.slice(i + 1), length - 1).map(w => [v, ...w])
? perm(array.slice(i + 1), length - 1).map((w) => [v, ...w])
: [[v]]
);
}
Expand Down

0 comments on commit e3e577e

Please sign in to comment.