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

Commit

Permalink
perf: remove unnecessary spread
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Jun 12, 2020
1 parent 48b9afb commit 2300a93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const globalPlugin: Plugin = context => {
context.app.setup = (...args) => {
let result = {}
if (setup instanceof Function) {
result = { ...setup(...args) }
result = setup(...args)
}
for (const fn of globalSetup) {
result = { ...result, ...(fn(...args) || {}) }
Expand Down

1 comment on commit 2300a93

@vercel
Copy link

@vercel vercel bot commented on 2300a93 Jun 12, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.