Skip to content

Commit 3703fae

Browse files
committed
ProjectOptions: use the spread operator when handling cc
The spread operator is a very powerful, somewhat recent feature that we can now use instead of a `for` loop. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 27b59bf commit 3703fae

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/project-options.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@ export class ProjectOptions {
1919
const project = config.project as projectInfo;
2020
to = `--to=${project.to}`;
2121
midUrlPrefix = project.urlPrefix;
22-
for (const user of project.cc) {
23-
cc.push(user);
24-
}
22+
cc.push(...project.cc);
2523
// Hard-code a check for gitgitgadget/git whether this is a Git GUI PR
2624
// and hence needs the Git GUI maintainer to be Cc:ed
2725
if (

0 commit comments

Comments
 (0)