Commit bb0fcaa7 authored by Sarah GP's avatar Sarah GP

Remove costly spreads

parent f8b9cc2f
...@@ -49,10 +49,10 @@ export const generateJobNeedsDict = (jobs = {}) => { ...@@ -49,10 +49,10 @@ export const generateJobNeedsDict = (jobs = {}) => {
// to the list of `needs` to ensure we can properly reference it. // to the list of `needs` to ensure we can properly reference it.
const group = jobs[job]; const group = jobs[job];
if (group.size > 1) { if (group.size > 1) {
return [job, group.name, ...newNeeds]; return [job, group.name, newNeeds];
} }
return [job, ...newNeeds]; return [job, newNeeds];
}) })
.flat(Infinity); .flat(Infinity);
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment