Procházet zdrojové kódy

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.
Dennis před 7 roky
rodič
revize
32a3a73755
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      tools/etcd-dump-metrics/install_windows.go

+ 2 - 2
tools/etcd-dump-metrics/install_windows.go

@@ -18,6 +18,6 @@ package main
 
 
 import "errors"
 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")
 }
 }