From 32a3a73755878975842dcebd6423d75c41ae9808 Mon Sep 17 00:00:00 2001 From: Dennis Date: Sat, 29 Sep 2018 11:17:49 +0800 Subject: [PATCH] tools: fix building failures on Windows When building tools on Win,it shows `.\main.go:68:12: assignment mismatch: 2 variables but 1 values`.The reason is the return variables not match the calling from `main.go` and i try to fix it. --- tools/etcd-dump-metrics/install_windows.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/etcd-dump-metrics/install_windows.go b/tools/etcd-dump-metrics/install_windows.go index cbb3d1025..a7aa8563a 100644 --- a/tools/etcd-dump-metrics/install_windows.go +++ b/tools/etcd-dump-metrics/install_windows.go @@ -18,6 +18,6 @@ package main import "errors" -func install(ver, dir string) error { - return errors.New("windows install is not supported yet") +func install(ver, dir string) (string, error) { + return "", errors.New("windows install is not supported yet") }