From 8645e5f04aff8b0eacd617bbcf2395615c25d68b Mon Sep 17 00:00:00 2001 From: Huo Chunyang Date: Fri, 13 Oct 2017 20:53:06 +0800 Subject: [PATCH] refactor: remove unnecessary condition (#6795) --- src/core/util/options.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/util/options.js b/src/core/util/options.js index c42245e0..3be38b8e 100644 --- a/src/core/util/options.js +++ b/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)}.`,