mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Remove extraneous condition
It's covered by a check below.
This commit is contained in:
@@ -30,7 +30,6 @@ if (__DEV__) {
|
||||
const propTypes = {
|
||||
value: function(props, propName, componentName) {
|
||||
if (
|
||||
!(propName in props) ||
|
||||
hasReadOnlyValue[props.type] ||
|
||||
props.onChange ||
|
||||
props.readOnly ||
|
||||
@@ -48,7 +47,6 @@ if (__DEV__) {
|
||||
},
|
||||
checked: function(props, propName, componentName) {
|
||||
if (
|
||||
!(propName in props) ||
|
||||
props.onChange ||
|
||||
props.readOnly ||
|
||||
props.disabled ||
|
||||
|
||||
Reference in New Issue
Block a user