mirror of
https://gitee.com/vuejs/vue.git
synced 2024-12-03 12:38:24 +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)
|
||||
: userDef.get
|
||||
: noop
|
||||
sharedPropertyDefinition.set = userDef.set
|
||||
? userDef.set
|
||||
: noop
|
||||
sharedPropertyDefinition.set = userDef.set || noop
|
||||
}
|
||||
if (process.env.NODE_ENV !== 'production' &&
|
||||
sharedPropertyDefinition.set === noop) {
|
||||
|
Loading…
Reference in New Issue
Block a user