Skip to content

Commit 8645e5f

Browse files
HcySunYangyyx990803
authored andcommitted
refactor: remove unnecessary condition (#6795)
1 parent 5a15a8d commit 8645e5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/core/util/options.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ function normalizeProps (options: Object, vm: ?Component) {
286286
? val
287287
: { type: val }
288288
}
289-
} else if (process.env.NODE_ENV !== 'production' && props) {
289+
} else if (process.env.NODE_ENV !== 'production') {
290290
warn(
291291
`Invalid value for option "props": expected an Array or an Object, ` +
292292
`but got ${toRawType(props)}.`,

0 commit comments

Comments
 (0)