Explorar o código

changed !exists to exists == false

Ben Frye %!s(int64=11) %!d(string=hai) anos
pai
achega
c2a38e6498
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)
 			}
 		}