From 5aae36726f599ba8dce2d261964e62d57c9d9e39 Mon Sep 17 00:00:00 2001 From: Vishnu Kannan Date: Mon, 21 Jul 2014 05:49:51 +0000 Subject: [PATCH] Fixed bugs introduced in previous patches. --- container/factory.go | 2 -- utils/path.go | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/container/factory.go b/container/factory.go index 54cbbc6c..f96a23e7 100644 --- a/container/factory.go +++ b/container/factory.go @@ -16,7 +16,6 @@ package container import ( "fmt" - "log" "sync" ) @@ -53,7 +52,6 @@ func NewContainerHandler(name string) (ContainerHandler, error) { // Create the ContainerHandler with the first factory that supports it. for _, factory := range factories { if factory.CanHandle(name) { - log.Printf("Using factory %q for container %q", factory.String(), name) return factory.NewContainerHandler(name) } } diff --git a/utils/path.go b/utils/path.go index e842a519..115ddf2d 100644 --- a/utils/path.go +++ b/utils/path.go @@ -4,7 +4,7 @@ import "os" func FileExists(file string) bool { if _, err := os.Stat(file); err != nil { - return true + return false } - return false + return true }