Remove unnecessary literal return value.

This commit is contained in:
Jesse McCarthy
2016-01-11 11:52:52 -05:00
parent bcfa58a6a2
commit afd98ebd2a

View File

@@ -245,9 +245,9 @@ export let visitor = {
target.findParent(function (path) {
if (path.isLoop()) {
target = path;
} else if (path.isFunction()) {
// stop crawling up for functions
return true;
} else {
// Stop crawling up if this is a function.
return path.isFunction();
}
});