Skip to content

Commit

Permalink
refactor: remove unnecessary condition (vuejs#6795)
Browse files Browse the repository at this point in the history
  • Loading branch information
HcySunYang authored and hefeng committed Jan 25, 2019
1 parent 7d0edba commit d28a70a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/util/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)}.`,
Expand Down

0 comments on commit d28a70a

Please sign in to comment.