Skip to content

Commit

Permalink
Remove if-statement that is always true
Browse files Browse the repository at this point in the history
  • Loading branch information
CptWesley committed Mar 25, 2020
1 parent 4092ff4 commit ecdb077
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/material-ui/src/MenuList/MenuList.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,7 @@ const MenuList = React.forwardRef(function MenuList(props, ref) {
newChildProps.tabIndex = 0;
}

if (newChildProps !== null) {
return React.cloneElement(child, newChildProps);
}
return React.cloneElement(child, newChildProps);
}

return child;
Expand Down

0 comments on commit ecdb077

Please sign in to comment.