From c0e8c5192db4e5b36d517efc22107d55dfa63d09 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Mon, 17 Feb 2025 22:18:52 +0800 Subject: git_hooks_handle.go: Remove err_not_unixconn As this always suggests a programming mistake, we do not check the type assertion, causing it to panic if the types don't match. --- git_hooks_handle.go | 1 - 1 file changed, 1 deletion(-) diff --git a/git_hooks_handle.go b/git_hooks_handle.go index 4e3d93d..3719933 100644 --- a/git_hooks_handle.go +++ b/git_hooks_handle.go @@ -11,7 +11,6 @@ import ( ) var ( - err_not_unixconn = errors.New("Not a unix connection") err_get_fd = errors.New("Unable to get file descriptor") err_get_ucred = errors.New("Failed getsockopt") ) -- cgit v1.2.3