@samitouri / QOS-React-2 / commits / 510ced1d13
Fork 0

The library for web and native user interfaces.

Removed duplicate object type check

Paul Seiffert committed May 31, 2013 at 07:13 UTC 510ced1d1367de182dceb9ecf10b8bb9ba10c31b
1 file changed +1 -2
vendor/fbtransform/transforms/reactDisplayName.js
+1 -2
@@ -36,8 +36,7 @@ var getDocblock = require('../lib/utils').getDocblock;
36 * });
37 */
38 function visitReactDisplayName(traverse, object, path, state) {
39 - if (object.type === Syntax.VariableDeclarator &&
40 - object.id.type === Syntax.Identifier &&
39 + if (object.id.type === Syntax.Identifier &&
40 object.init &&
41 object.init.type === Syntax.CallExpression &&
42 object.init.callee.type === Syntax.MemberExpression &&