Fix linting issues

This commit is contained in:
Lena Fuhrimann 2018-04-21 11:53:46 +02:00
parent aacce5cfdf
commit 200fc5c8c1
2 changed files with 8 additions and 2 deletions

View file

@ -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

View file

@ -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.