Fix golint complaints

This commit is contained in:
Harshavardhana
2015-09-17 18:58:19 -07:00
parent 2a99791c71
commit c60d2ac8d7
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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 $@:"
+1 -2
View File
@@ -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"))
+1
View File
@@ -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)