From c60d2ac8d7eae51c8a04bd58e0652b4fae24dc0a Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Thu, 17 Sep 2015 18:58:19 -0700 Subject: [PATCH] Fix golint complaints --- Makefile | 2 +- pkg/client/s3/s3.go | 3 +-- pkg/console/console.go | 1 + 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 0edc8264..13ab1727 100644 --- a/Makefile +++ b/Makefile @@ -32,7 +32,7 @@ fmt: lint: @echo "Running $@:" @GO15VENDOREXPERIMENT=1 golint . - @GO15VENDOREXPERIMENT=1 golint pkg + @GO15VENDOREXPERIMENT=1 golint github.com/minio/mc/pkg... cyclo: @echo "Running $@:" diff --git a/pkg/client/s3/s3.go b/pkg/client/s3/s3.go index 04b05da5..2a793338 100644 --- a/pkg/client/s3/s3.go +++ b/pkg/client/s3/s3.go @@ -18,7 +18,6 @@ package s3 import ( "errors" - "fmt" "io" "net/http" "os" @@ -136,7 +135,7 @@ func (c *s3Client) MakeBucket() *probe.Error { return probe.NewError(client.InvalidQueryURL{URL: c.hostURL.String()}) } if bucket == "" { - return probe.NewError(errors.New(fmt.Sprintf("Bucket name is empty."))) + return probe.NewError(errors.New("Bucket name is empty.")) } err := c.api.MakeBucket(bucket, minio.BucketACL("private")) diff --git a/pkg/console/console.go b/pkg/console/console.go index 257b73cc..16d9dc00 100644 --- a/pkg/console/console.go +++ b/pkg/console/console.go @@ -193,6 +193,7 @@ var ( } } + // Colorize prints message in a colorized form, dictated by the corresponding tag argument Colorize = func(tag string, data interface{}) string { if isatty.IsTerminal(os.Stdout.Fd()) { return Theme[tag].SprintFunc()(data)