mirror of
https://gitee.com/vuejs/vue.git
synced 2024-12-04 04:57:40 +08:00
refactor: remove redundant ternary (#8848)
This commit is contained in:
parent
e29fbad0ac
commit
374861f72b
@ -224,9 +224,7 @@ export function defineComputed (
|
|||||||
? createComputedGetter(key)
|
? createComputedGetter(key)
|
||||||
: userDef.get
|
: userDef.get
|
||||||
: noop
|
: noop
|
||||||
sharedPropertyDefinition.set = userDef.set
|
sharedPropertyDefinition.set = userDef.set || noop
|
||||||
? userDef.set
|
|
||||||
: noop
|
|
||||||
}
|
}
|
||||||
if (process.env.NODE_ENV !== 'production' &&
|
if (process.env.NODE_ENV !== 'production' &&
|
||||||
sharedPropertyDefinition.set === noop) {
|
sharedPropertyDefinition.set === noop) {
|
||||||
|
Loading…
Reference in New Issue
Block a user