Selaa lähdekoodia

Merge pull request #238 from WeiZhang555/clean

cleanup: remove unused variable
Jana Radhakrishnan 10 vuotta sitten
vanhempi
commit
944a1cd026
1 muutettua tiedostoa jossa 0 lisäystä ja 5 poistoa
  1. 0 5
      libnetwork/endpoint.go

+ 0 - 5
libnetwork/endpoint.go

@@ -451,11 +451,6 @@ func (ep *endpoint) buildHostsFiles() error {
 		}
 	}
 
-	name := container.config.hostName
-	if container.config.domainName != "" {
-		name = name + "." + container.config.domainName
-	}
-
 	for _, extraHost := range container.config.extraHosts {
 		extraContent = append(extraContent,
 			etchosts.Record{Hosts: extraHost.name, IP: extraHost.IP})