Skip to content

Commit a6a203b

Browse files
committed
Change const variable name
1 parent b3009dc commit a6a203b

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)