diff --git a/ipc/ipc_unix.go b/ipc/ipc_unix.go index f70e6e1..2f53444 100644 --- a/ipc/ipc_unix.go +++ b/ipc/ipc_unix.go @@ -8,9 +8,7 @@ import ( func (sh *ServerHandlers) Listen() (net.Listener, error) { sh.path = filepath.Join(os.TempDir(), sh.Addr) - if err := os.Remove(sh.path); nil != err { - return nil, err - } + os.Remove(sh.path); nil != err { return net.ListenUnix("unix", &net.UnixAddr{Name: sh.path, Net: "unix"}) }