diff options
author | Runxi Yu <me@runxiyu.org> | 2025-03-19 12:06:54 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-03-19 12:06:54 +0800 |
commit | 87b1ab519c77816d1c68a691e70137bd6f1c234b (patch) | |
tree | ca4b1a6f057138aed716caecce69571915da1b2c /git_hooks_deploy.go | |
parent | Remove old style guide (diff) | |
download | forge-87b1ab519c77816d1c68a691e70137bd6f1c234b.tar.gz forge-87b1ab519c77816d1c68a691e70137bd6f1c234b.tar.zst forge-87b1ab519c77816d1c68a691e70137bd6f1c234b.zip |
Remove underscores from Go code, pt 5
Diffstat (limited to '')
-rw-r--r-- | git_hooks_deploy.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/git_hooks_deploy.go b/git_hooks_deploy.go index 992f892..86df6e3 100644 --- a/git_hooks_deploy.go +++ b/git_hooks_deploy.go @@ -44,10 +44,10 @@ func deployHooks() (err error) { return err } - for _, hook_name := range []string{ + for _, hookName := range []string{ "pre-receive", } { - if err = os.Symlink(filepath.Join(config.Hooks.Execs, "hookc"), filepath.Join(config.Hooks.Execs, hook_name)); err != nil { + if err = os.Symlink(filepath.Join(config.Hooks.Execs, "hookc"), filepath.Join(config.Hooks.Execs, hookName)); err != nil { return err } } |