Skip to content

Commit 9ac1852

Browse files
committed
refactor(factories): one line if
1 parent e4d59c2 commit 9ac1852

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/lib/factories.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,7 @@ export function createShorthand(Component, mapValueToProps, val, defaultProps =
107107
}
108108

109109
// Generate child key
110-
if (generateKey) {
111-
props.key = getChildKey(props) // eslint-disable-line react/prop-types
112-
}
110+
if (generateKey) props.key = getChildKey(props) // eslint-disable-line react/prop-types
113111

114112
// ----------------------------------------
115113
// Create Element

0 commit comments

Comments
 (0)