From 44598e3e897851265efa1049b27c2345b62f8b23 Mon Sep 17 00:00:00 2001 From: Disconnect3d Date: Fri, 21 Aug 2020 11:15:09 +0200 Subject: [PATCH] wgengine/monitor_freebsd.go: remove duplicated errcheck Signed-off-by: disconnect3d --- wgengine/monitor/monitor_freebsd.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/wgengine/monitor/monitor_freebsd.go b/wgengine/monitor/monitor_freebsd.go index 13a7fb8c1..2d324c454 100644 --- a/wgengine/monitor/monitor_freebsd.go +++ b/wgengine/monitor/monitor_freebsd.go @@ -30,9 +30,6 @@ func newOSMon(logf logger.Logf) (osMon, error) { if err != nil { return nil, fmt.Errorf("devd dial error: %v", err) } - if err != nil { - return nil, fmt.Errorf("dialing devd socket: %v", err) - } return &devdConn{conn}, nil }