From 32316ad9429a30bfedffe10fd7ae39bb9b857900 Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Thu, 12 Feb 2015 07:45:55 +1100 Subject: [PATCH] clean up t.is --- lib/6to5/types/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/6to5/types/index.js b/lib/6to5/types/index.js index 1b40721c2c..55da05b75b 100644 --- a/lib/6to5/types/index.js +++ b/lib/6to5/types/index.js @@ -70,9 +70,9 @@ each(t.FLIPPED_ALIAS_KEYS, function (types, type) { */ t.is = function (type, node, opts, skipAliasCheck) { - if (!node) return; + if (!node) return false; - var typeMatches = (type === node.type); + var typeMatches = type === node.type; if (!typeMatches && !skipAliasCheck) { var aliases = t.FLIPPED_ALIAS_KEYS[type];