Skip to content

Commit

Permalink
refactor: remove redundant ternary (#8848)
Browse files Browse the repository at this point in the history
  • Loading branch information
sultaniman authored and yyx990803 committed Nov 30, 2018
1 parent e29fbad commit 374861f
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 374861f

Please sign in to comment.