From a63f24276963346c629867a1ebacf2c887d152cf Mon Sep 17 00:00:00 2001 From: Sultan Iman <354868+imanhodjaev@users.noreply.github.com> Date: Fri, 30 Nov 2018 23:38:09 +0100 Subject: [PATCH] refactor: remove redundant ternary (#8848) --- src/core/instance/state.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/core/instance/state.js b/src/core/instance/state.js index 50311b2f61..948dc08bc5 100644 --- a/src/core/instance/state.js +++ b/src/core/instance/state.js @@ -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) {