From 3c60fe4276ba2b7b3cab0274d350e2589467f90c Mon Sep 17 00:00:00 2001 From: crusader Date: Thu, 26 Oct 2017 23:56:30 +0900 Subject: [PATCH] ing --- ipc/ipc_unix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipc/ipc_unix.go b/ipc/ipc_unix.go index 2f53444..38ee6e6 100644 --- a/ipc/ipc_unix.go +++ b/ipc/ipc_unix.go @@ -8,7 +8,7 @@ import ( func (sh *ServerHandlers) Listen() (net.Listener, error) { sh.path = filepath.Join(os.TempDir(), sh.Addr) - os.Remove(sh.path); nil != err { + os.Remove(sh.path) return net.ListenUnix("unix", &net.UnixAddr{Name: sh.path, Net: "unix"}) }