Skip to content

Commit

Permalink
fix: fixed lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Arylo committed Dec 4, 2024
1 parent e725e12 commit 8c8ed86
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/monkey/gitlab-enhance/merge_requests/templateUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@ const enter = () => '\n'

class Template {
protected templateContent: string
private headerNextUtils: { text: Template['text'], listItem: Template['listItem'], taskItem: Template['taskItem'] }
private contentNextUtils: Template['headerNextUtils'] & { end: Template['emptyLine'] }
constructor(text: string) {
this.templateContent = text
}

private headerNextUtils = {
text: this.text.bind(this),
listItem: this.listItem.bind(this),
taskItem: this.taskItem.bind(this),
}

private contentNextUtils = {
...this.headerNextUtils,
end: this.emptyLine.bind(this),
this.headerNextUtils = {
text: this.text.bind(this),
listItem: this.listItem.bind(this),
taskItem: this.taskItem.bind(this),
}
this.contentNextUtils = {
...this.headerNextUtils,
end: this.emptyLine.bind(this),
}
}

private header = (level: number) => (text: string) => {
Expand Down

0 comments on commit 8c8ed86

Please sign in to comment.