aboutsummaryrefslogtreecommitdiffstats
path: root/ipc/uapi_bsd.go
diff options
context:
space:
mode:
Diffstat (limited to 'ipc/uapi_bsd.go')
-rw-r--r--ipc/uapi_bsd.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/ipc/uapi_bsd.go b/ipc/uapi_bsd.go
index 75cc0e3..a74a7ed 100644
--- a/ipc/uapi_bsd.go
+++ b/ipc/uapi_bsd.go
@@ -151,8 +151,7 @@ func UAPIOpen(name string) (*os.File, error) {
// check if path exist
- err := os.MkdirAll(socketDirectory, 0755)
- if err != nil && !os.IsExist(err) {
+ if err := os.MkdirAll(socketDirectory, 0755); err != nil {
return nil, err
}