Skip to content

Commit 2b4ef2e

Browse files
Exterskybrettz9
authored andcommitted
Lint fixes
1 parent bedf526 commit 2b4ef2e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/exportParser.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ const getSymbol = function (node, globals, scope, opt) {
111111
return null;
112112
};
113113

114-
const createBlockSymbol = function(block, name, value, globals, isGlobal) {
114+
const createBlockSymbol = function (block, name, value, globals, isGlobal) {
115115
block.props[name] = value;
116116
if (isGlobal && globals.props.window && globals.props.window.special) {
117117
globals.props.window.props[name] = value;
@@ -195,12 +195,12 @@ const mapVariables = function (node, globals, opt) {
195195
const opts = opt || {};
196196
switch (node.type) {
197197
case 'Program': {
198-
if (!opts.ancestorsOnly) {
198+
if (opts.ancestorsOnly) {
199+
return false;
200+
} else {
199201
node.body.forEach((childNode) => {
200202
mapVariables(childNode, globals, opts);
201203
});
202-
} else {
203-
return false;
204204
}
205205
break;
206206
} case 'ExpressionStatement': {

0 commit comments

Comments
 (0)