Skip to content

Commit

Permalink
refactor: remove redundant ternary (vuejs#8848)
Browse files Browse the repository at this point in the history
  • Loading branch information
sultaniman authored and aJean committed Aug 19, 2020
1 parent 3a20712 commit a63f242
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/core/instance/state.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit a63f242

Please sign in to comment.