Skip to content

Commit 412c644

Browse files
committed
trivial: prevent dupe array creation in plugin add
1 parent fa107ce commit 412c644

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/run/src/plugin.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,9 @@ const add = async (args: string[], config: LoadedConfig) => {
106106
try {
107107
// install anything that needs to be installed
108108
if (needInstall.size) {
109-
console.error('installing:', [...needInstall])
110-
await install([...needInstall], config)
109+
const ni = [...needInstall]
110+
console.error('installing:', ni)
111+
await install(ni, config)
111112
installed = true
112113
}
113114

0 commit comments

Comments
 (0)