Skip to content

Commit 6b179ed

Browse files
ferhatelmasljharb
authored andcommitted
fix(sort-prop-types): correct guard against falsy
1 parent 32b751f commit 6b179ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rules/sort-prop-types.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ module.exports = {
166166

167167
return {
168168
CallExpression: function(node) {
169-
if (!sortShapeProp || !isShapeProp(node) || (!node.arguments && !node.arguments[0])) {
169+
if (!sortShapeProp || !isShapeProp(node) || !(node.arguments && node.arguments[0])) {
170170
return;
171171
}
172172
checkSorted(node.arguments[0].properties);

0 commit comments

Comments
 (0)