Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 98cf093

Browse filesBrowse files
authored
Change argument name from inner variable name
1 parent 7ceb0a9 commit 98cf093
Copy full SHA for 98cf093

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎README.md

Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ const menuConfig = {
497497
};
498498

499499
function createMenu(config) {
500-
config = Object.assign(
500+
let finalConfig = Object.assign(
501501
{
502502
title: 'Foo',
503503
body: 'Bar',
@@ -506,7 +506,7 @@ function createMenu(config) {
506506
},
507507
config
508508
);
509-
509+
return finalConfig;
510510
// config 現在等同於: {title: 'Order', body: 'Bar', buttonText: 'Send', cancellable: true}
511511
// ...
512512
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.