refactor: remove redundant ternary (#8848)

This commit is contained in:
Sultan Iman 2018-11-30 23:38:09 +01:00 committed by Evan You
parent e29fbad0ac
commit 374861f72b

View File

@ -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) {