Skip to content

Missing semicolon after return finalConfig - #749

Open
zaman1100 wants to merge 1 commit into
ryanmcdermott:masterfrom
zaman1100:patch-2
Open

Missing semicolon after return finalConfig#749
zaman1100 wants to merge 1 commit into
ryanmcdermott:masterfrom
zaman1100:patch-2

Conversation

@zaman1100

Copy link
Copy Markdown

The comment is wrong and placed after a return, so it's dead code. Object.assign never mutates config (the source object) — it mutates and returns the first argument (the anonymous default object). So config never "equals" anything new; the merged result lives in finalConfig. The comment should say finalConfig now equals: ..., and it needs to sit before the return to make sense at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant