Skip to content

Commit d28a70a

Browse files
HcySunYanghefeng
authored and
hefeng
committed
refactor: remove unnecessary condition (vuejs#6795)
1 parent 7d0edba commit d28a70a

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)