Skip to content

Commit 184b88e

Browse files
committedNov 15, 2017
style: make wrapChildren one line
1 parent 95edc69 commit 184b88e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎src/index.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,7 @@ class MediaQuery extends React.Component {
109109
const props = omit(this.props, excludedPropKeys)
110110
const hasMergeProps = Object.keys(props).length > 0
111111
const childrenCount = React.Children.count(this.props.children)
112-
const wrapChildren = this.props.component ||
113-
this.props.children === undefined
112+
const wrapChildren = this.props.component || this.props.children === undefined
114113
if (wrapChildren) {
115114
return React.createElement(
116115
this.props.component || 'div',

0 commit comments

Comments
 (0)
Please sign in to comment.