clean up t.is
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user