Fix linting issues
This commit is contained in:
parent
aacce5cfdf
commit
200fc5c8c1
2 changed files with 8 additions and 2 deletions
|
@ -1,11 +1,17 @@
|
||||||
language: go
|
language: go
|
||||||
|
|
||||||
|
go:
|
||||||
|
- stable
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
|
- curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
|
||||||
|
- go get -u github.com/alecthomas/gometalinter
|
||||||
|
- gometalinter --install
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- dep ensure
|
- dep ensure
|
||||||
|
|
||||||
script:
|
script:
|
||||||
|
- make lint
|
||||||
- make test
|
- make test
|
||||||
- make
|
- make
|
||||||
|
|
|
@ -20,8 +20,8 @@ const (
|
||||||
|
|
||||||
// Errors that may be returned from an S3 client.
|
// Errors that may be returned from an S3 client.
|
||||||
var (
|
var (
|
||||||
ErrBucketDoesNotExist = errors.New("The specified bucket does not exist.")
|
ErrBucketDoesNotExist = errors.New("The specified bucket does not exist.") // nolint: golint
|
||||||
ErrKeyDoesNotExist = errors.New("The specified key does not exist.")
|
ErrKeyDoesNotExist = errors.New("The specified key does not exist.") // nolint: golint
|
||||||
)
|
)
|
||||||
|
|
||||||
// handleHTTPError handles HTTP errors.
|
// handleHTTPError handles HTTP errors.
|
||||||
|
|
Loading…
Reference in a new issue