From f64464cc85f2e91828bc1fc9625ae51fe19f17b4 Mon Sep 17 00:00:00 2001 From: crusader Date: Thu, 26 Oct 2017 23:54:25 +0900 Subject: [PATCH] ing --- ipc/ipc_unix.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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"}) }