Update param scope values when expanding parameters.
This commit is contained in:
@@ -96,7 +96,7 @@ export default function convertFunctionParams(path) {
|
||||
}
|
||||
}
|
||||
|
||||
if (body.length === 0) return;
|
||||
if (body.length === 0) return false;
|
||||
|
||||
// we need to cut off all trailing parameters
|
||||
if (firstOptionalIndex !== null) {
|
||||
@@ -112,4 +112,6 @@ export default function convertFunctionParams(path) {
|
||||
} else {
|
||||
path.get("body").unshiftContainer("body", body);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user