Selaa lähdekoodia

changed !exists to exists == false

Ben Frye 11 vuotta sitten
vanhempi
commit
c2a38e6498
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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)
 			}
 		}