fix coding style and have make validate pass

Signed-off-by: Tibor Vass <tibor@docker.com>
This commit is contained in:
Tibor Vass
2015-11-02 23:13:29 -05:00
parent 6cbcdc7a6d
commit 263604f570
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -2,8 +2,8 @@ package main
import (
"fmt"
"strings"
"net"
"strings"
"github.com/docker/docker/pkg/integration/checker"
"github.com/docker/docker/utils"
@@ -92,7 +92,7 @@ func (s *DockerSuite) TestInfoDiscoveryAdvertiseInterfaceName(c *check.C) {
addrs, err := iface.Addrs()
c.Assert(err, checker.IsNil)
if len(addrs) <= 0 {
c.Fatalf("addrs %v has to have at least one element")
c.Fatalf("addrs %v has to have at least one element", addrs)
}
ip, _, err := net.ParseCIDR(addrs[0].String())
c.Assert(err, checker.IsNil)
+1 -1
View File
@@ -273,7 +273,7 @@ func (s *DockerSuite) TestRmiForceWithMultipleRepositories(c *check.C) {
if !strings.Contains(out, "Untagged: "+tag2) {
c.Fatalf("should contain Untagged: %s", tag2)
}
if strings.Contains(out, "Untagged: " + tag1) {
if strings.Contains(out, "Untagged: "+tag1) {
c.Fatalf("should not contain Untagged: %s", tag1)
}