aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--git_hooks_handle.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/git_hooks_handle.go b/git_hooks_handle.go
index 0bf7b88..80c0088 100644
--- a/git_hooks_handle.go
+++ b/git_hooks_handle.go
@@ -328,7 +328,7 @@ func serveGitHooks(listener net.Listener) error {
}
func getUcred(conn net.Conn) (ucred *syscall.Ucred, err error) {
- var unixConn = conn.(*net.UnixConn)
+ unixConn := conn.(*net.UnixConn)
var fd *os.File
if fd, err = unixConn.File(); err != nil {