build: mask linter errors we can't fix

This commit is contained in:
Nick Craig-Wood 2018-05-05 11:49:03 +01:00
parent e80ae4e09c
commit aa5c5ec5d3
3 changed files with 5 additions and 5 deletions

View file

@ -221,7 +221,7 @@ func swiftConnection(name string) (*swift.Connection, error) {
return nil, errors.Wrap(err, "failed to read environment variables")
}
}
StorageUrl, AuthToken := c.StorageUrl, c.AuthToken
StorageUrl, AuthToken := c.StorageUrl, c.AuthToken // nolint
if !c.Authenticated() {
if c.UserName == "" && c.UserId == "" {
return nil, errors.New("user name or user id not found for authentication (and no storage_url+auth_token is provided)")