Skip to content

Commit

Permalink
[MenuList] Remove if-statement that is always true (#20270)
Browse files Browse the repository at this point in the history
  • Loading branch information
CptWesley authored Mar 25, 2020
1 parent d93b336 commit 0e2e8ee
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 @@ -238,9 +238,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 0e2e8ee

Please sign in to comment.