Update param scope values when expanding parameters.

This commit is contained in:
Logan Smyth
2017-05-02 21:24:35 -07:00
committed by Brian Ng
parent 95882d4e5a
commit 8e19a5b057
4 changed files with 30 additions and 9 deletions

View File

@@ -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;
}