Skip to content

Commit

Permalink
refactor: remove redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
ktsn committed Apr 30, 2018
1 parent a4ace5c commit ff8611d
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/view/components/Expression.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default Vue.extend({
const result = evalWithScope(exp, scope)
const resolved = result.isSuccess && result.value != null
const str = resolved
? toStringForPrint((result as EvalSuccess).value)
? String((result as EvalSuccess).value)
: '{{ ' + exp + ' }}'
return h(
Expand All @@ -38,14 +38,6 @@ export default Vue.extend({
)
}
})
function toStringForPrint(value: DefaultValue): string {
if (value == null) {
return ''
} else {
return String(value)
}
}
</script>

<style lang="scss" scoped>
Expand Down

0 comments on commit ff8611d

Please sign in to comment.