File tree Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -171,3 +171,5 @@ var SingleArgArrowFunction = React.createClass({
171
171
172
172
var mySpec = { } ;
173
173
var NotAnObjectLiteral = React . createClass ( mySpec ) ;
174
+
175
+ var WaitWhat = React . createClass ( ) ;
Original file line number Diff line number Diff line change @@ -167,3 +167,5 @@ class SingleArgArrowFunction extends React.Component {
167
167
168
168
var mySpec = { } ;
169
169
var NotAnObjectLiteral = React . createClass ( mySpec ) ;
170
+
171
+ var WaitWhat = React . createClass ( ) ;
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ module.exports = function(j) {
102
102
const args = callCollection . get ( 'arguments' ) . value ;
103
103
if ( args ) {
104
104
const spec = args [ 0 ] ;
105
- if ( spec . type === 'ObjectExpression' && Array . isArray ( spec . properties ) ) {
105
+ if ( spec && spec . type === 'ObjectExpression' && Array . isArray ( spec . properties ) ) {
106
106
return spec ;
107
107
}
108
108
}
You can’t perform that action at this time.
0 commit comments