Fix golint complaints
This commit is contained in:
@@ -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
@@ -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"))
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user