diff --git a/lib/rules/sort-prop-types.js b/lib/rules/sort-prop-types.js index 174ee43c50..90deb23705 100644 --- a/lib/rules/sort-prop-types.js +++ b/lib/rules/sort-prop-types.js @@ -166,7 +166,7 @@ module.exports = { return { CallExpression: function(node) { - if (!sortShapeProp || !isShapeProp(node) || (!node.arguments && !node.arguments[0])) { + if (!sortShapeProp || !isShapeProp(node) || !(node.arguments && node.arguments[0])) { return; } checkSorted(node.arguments[0].properties);