From c4be1ee768534cb6013c3d18a1dfe2bc83f26e64 Mon Sep 17 00:00:00 2001 From: Sultan Iman Date: Wed, 26 Sep 2018 16:13:21 +0200 Subject: [PATCH] refactor: remove redundant ternary --- 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 b1549b0dcc..fb37b9a32f 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) {