Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 2300a93

Browse files
committed
perf: remove unnecessary spread
1 parent 48b9afb commit 2300a93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hooks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export const globalPlugin: Plugin = context => {
3737
context.app.setup = (...args) => {
3838
let result = {}
3939
if (setup instanceof Function) {
40-
result = { ...setup(...args) }
40+
result = setup(...args)
4141
}
4242
for (const fn of globalSetup) {
4343
result = { ...result, ...(fn(...args) || {}) }

0 commit comments

Comments
 (0)