Skip to content

Commit 09042b0

Browse files
HcySunYang孙广彪
authored and
孙广彪
committed
refactor: remove unnecessary condition (vuejs#6795)
1 parent 4b1322e commit 09042b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/util/options.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ function normalizeProps (options: Object, vm: ?Component) {
389389
? val
390390
: { type: val }
391391
}
392-
} else if (process.env.NODE_ENV !== 'production' && props) {
392+
} else if (process.env.NODE_ENV !== 'production') {
393393
warn(
394394
`Invalid value for option "props": expected an Array or an Object, ` +
395395
`but got ${toRawType(props)}.`,

0 commit comments

Comments
 (0)