Skip to content

Commit

Permalink
refactor: reduce redundancy
Browse files Browse the repository at this point in the history
  • Loading branch information
Seli0303 committed May 27, 2024
1 parent fc60608 commit 44770b8
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,11 @@ export default {
}
},
headerText () {
if (this.editId === 0) {
return this.content.header
} else {
return this.content.header + ' - editing ' + this.editId
let editing = ''
if (!(this.editId === 0)) {
editing = ' - editing ' + this.editId
}
return this.content.header + editing
},
// returns true if start and end point are the same
sameStartEndPoint () {
Expand Down

0 comments on commit 44770b8

Please sign in to comment.