@samitouri / QOS-React-2 / commits / 470377bbdb

Remove extraneous condition

It's covered by a check below.

Dan Abramov committed Aug 2, 2018 at 02:33 UTC 470377bbdb1874eec247a082ce418b0d26c43af6
1 file changed -2
packages/react-dom/src/shared/ReactControlledValuePropTypes.js
-2
@@ -30,7 +30,6 @@ if (__DEV__) {
30 const propTypes = {
31 value: function(props, propName, componentName) {
32 if (
33 - !(propName in props) ||
33 hasReadOnlyValue[props.type] ||
34 props.onChange ||
35 props.readOnly ||
@@ -48,7 +47,6 @@ if (__DEV__) {
47 },
48 checked: function(props, propName, componentName) {
49 if (
51 - !(propName in props) ||
50 props.onChange ||
51 props.readOnly ||
52 props.disabled ||