From 87b1ab519c77816d1c68a691e70137bd6f1c234b Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Wed, 19 Mar 2025 12:06:54 +0800 Subject: Remove underscores from Go code, pt 5 --- git_hooks_deploy.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'git_hooks_deploy.go') 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 } } -- cgit v1.2.3