Skip to content

Commit e2197b8

Browse files
refactor!: unexport commitMsgHook
1 parent 86d2543 commit e2197b8

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

file.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func WriteHookToFile(hookFilePath string) (retErr error) {
5050
}
5151
}()
5252

53-
commitHook := CommitMsgHook()
53+
commitHook := commitMsgHook()
5454
_, err = file.WriteString(commitHook)
5555
return err
5656
}

template.qtpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Total {%d len(res.Errors()) %} errors, {%d len(res.Warns()) %} warnings
4242
{%s successSign %} commit message
4343
{%- endfunc -%}
4444

45-
{%- func CommitMsgHook() -%}
45+
{%- func commitMsgHook() -%}
4646
#!/bin/sh
4747

4848
commitlint lint --msg $1

template.qtpl.go

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)