瀏覽代碼

changed !exists to exists == false

Ben Frye 11 年之前
父節點
當前提交
c2a38e6498
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      cluster.go

+ 1 - 1
cluster.go

@@ -73,7 +73,7 @@ func (cfg *ClusterConfig) CreateSession() (*Session, error) {
 					exists = true
 				}
 			}
-			if !exists {
+			if exists == false{
 				cfg.Hosts = append(cfg.Hosts, ip)
 			}
 		}