Return the consequent if the test is truthy.
This commit is contained in:
@@ -33,7 +33,7 @@ exports.IfStatement = {
|
||||
//
|
||||
|
||||
if (t.isLiteral(test) && test.value) {
|
||||
return alternate;
|
||||
return consequent;
|
||||
}
|
||||
|
||||
// we can check if a test will be falsy 100% and if so we can inline the
|
||||
|
||||
Reference in New Issue
Block a user