Browse Source

refactor: remove unnecessary condition (#6795)

dev
Huo Chunyang 7 years ago
committed by Evan You
parent
commit
8645e5f04a
  1. 2
      src/core/util/options.js

2
src/core/util/options.js

@ -286,7 +286,7 @@ function normalizeProps (options: Object, vm: ?Component) {
? val
: { type: val }
}
} else if (process.env.NODE_ENV !== 'production' && props) {
} else if (process.env.NODE_ENV !== 'production') {
warn(
`Invalid value for option "props": expected an Array or an Object, ` +
`but got ${toRawType(props)}.`,

Loading…
Cancel
Save