소스 검색

etcdmain: fix shadowed variables

Fix for https://github.com/coreos/etcd/issues/3954.
Gyu-Ho Lee 10 년 전
부모
커밋
c48b0a5e18
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      etcdmain/etcd.go

+ 1 - 1
etcdmain/etcd.go

@@ -363,7 +363,7 @@ func startProxy(cfg *config) error {
 			plog.Warningf("discovery token ignored since the proxy has already been initialized. Valid cluster file found at %q", clusterfile)
 		}
 		urls := struct{ PeerURLs []string }{}
-		err := json.Unmarshal(b, &urls)
+		err = json.Unmarshal(b, &urls)
 		if err != nil {
 			return err
 		}