Skip to content

Commit

Permalink
style: make wrapChildren one line
Browse files Browse the repository at this point in the history
  • Loading branch information
jessepinho committed Nov 15, 2017
1 parent 95edc69 commit 184b88e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,7 @@ class MediaQuery extends React.Component {
const props = omit(this.props, excludedPropKeys)
const hasMergeProps = Object.keys(props).length > 0
const childrenCount = React.Children.count(this.props.children)
const wrapChildren = this.props.component ||
this.props.children === undefined
const wrapChildren = this.props.component || this.props.children === undefined
if (wrapChildren) {
return React.createElement(
this.props.component || 'div',
Expand Down

0 comments on commit 184b88e

Please sign in to comment.