1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Make go-tools happy

Signed-off-by: Christoph Ziebuhr <chris@codefrickler.de>
This commit is contained in:
Christoph Ziebuhr 2018-03-08 11:45:04 +01:00
parent 40923e7353
commit 6362d28969
2 changed files with 2 additions and 4 deletions

View file

@ -280,7 +280,7 @@ func (r *resolver) handleIPQuery(name string, query *dns.Msg, ipType int) (*dns.
}
func (r *resolver) handlePTRQuery(ptr string, query *dns.Msg) (*dns.Msg, error) {
parts := []string{}
var parts []string
if strings.HasSuffix(ptr, ptrIPv4domain) {
parts = strings.Split(ptr, ptrIPv4domain)

View file

@ -351,9 +351,7 @@ func (sb *sandbox) getConnectedEndpoints() []*endpoint {
defer sb.Unlock()
eps := make([]*endpoint, len(sb.endpoints))
for i, ep := range sb.endpoints {
eps[i] = ep
}
copy(eps, sb.endpoints)
return eps
}