Skip to content

Commit e9c0f82

Browse files
authored
Merge pull request #8 from 0xbaadf00d/feature/const-var-name
Change const variable name
2 parents f2ef59b + a6a203b commit e9c0f82

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hook.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,13 @@ func ListHooks(repoPath string) (_ []*Hook, err error) {
102102
}
103103

104104
const (
105-
HOOK_PATH_UPDATE = "hooks/update"
105+
HookPathUpdate = "hooks/update"
106106
)
107107

108108
// SetUpdateHook writes given content to update hook of the reposiotry.
109109
func SetUpdateHook(repoPath, content string) (err error) {
110110
log("Setting update hook: %s", repoPath)
111-
hookPath := path.Join(repoPath, HOOK_PATH_UPDATE)
111+
hookPath := path.Join(repoPath, HookPathUpdate)
112112
if com.IsExist(hookPath) {
113113
err = os.Remove(hookPath)
114114
} else {

0 commit comments

Comments
 (0)