esutils
Advanced tools
Comparing version 1.1.3 to 1.1.4
@@ -97,3 +97,3 @@ /* | ||
case 'IfStatement': | ||
if (node.alternate) { | ||
if (node.alternate != null) { | ||
return node.alternate; | ||
@@ -122,10 +122,6 @@ } | ||
} | ||
if (node.consequent.type === 'BlockStatement') { | ||
return false; | ||
} | ||
current = node.consequent; | ||
do { | ||
if (current.type === 'IfStatement') { | ||
if (!current.alternate) { | ||
if (current.alternate == null) { | ||
return true; | ||
@@ -132,0 +128,0 @@ } |
@@ -6,3 +6,3 @@ { | ||
"main": "lib/utils.js", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"engines": { | ||
@@ -9,0 +9,0 @@ "node": ">=0.10.0" |
32895
382