Skip to content

Commit

Permalink
[MenuList] Remove if-statement that is always true (mui#20270)
Browse files Browse the repository at this point in the history
  • Loading branch information
CptWesley authored and EsoterikStare committed Mar 30, 2020
1 parent 6974eb8 commit 7c88f09
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 7c88f09

Please sign in to comment.