From fdee1f764fe0a228bf028dd72aae809334abaa92 Mon Sep 17 00:00:00 2001 From: crusader Date: Mon, 17 Sep 2018 20:13:17 +0900 Subject: [PATCH] ing --- net/ping/ping_windows.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/ping/ping_windows.go b/net/ping/ping_windows.go index ee30e85..510f76b 100644 --- a/net/ping/ping_windows.go +++ b/net/ping/ping_windows.go @@ -20,7 +20,7 @@ func Ping(destination string, options *PingOptions) (*PingResult, error) { pCmd := exec.Command("cmd.exe", params...) output, err := pCmd.CombinedOutput() if err != nil { - return "", err + return nil, err } return parseWindowsPing(output)