Skip to content

Commit 374861f

Browse files
sultanimanyyx990803
authored andcommitted
refactor: remove redundant ternary (#8848)
1 parent e29fbad commit 374861f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Diff for: src/core/instance/state.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -224,9 +224,7 @@ export function defineComputed (
224224
? createComputedGetter(key)
225225
: userDef.get
226226
: noop
227-
sharedPropertyDefinition.set = userDef.set
228-
? userDef.set
229-
: noop
227+
sharedPropertyDefinition.set = userDef.set || noop
230228
}
231229
if (process.env.NODE_ENV !== 'production' &&
232230
sharedPropertyDefinition.set === noop) {

0 commit comments

Comments
 (0)