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"}) }