forked from TrueCloudLab/rclone
build: mask linter errors we can't fix
This commit is contained in:
parent
e80ae4e09c
commit
aa5c5ec5d3
3 changed files with 5 additions and 5 deletions
|
@ -36,7 +36,7 @@ func (a *auth) Response(resp *http.Response) error {
|
||||||
|
|
||||||
// The public storage URL - set Internal to true to read
|
// The public storage URL - set Internal to true to read
|
||||||
// internal/service net URL
|
// internal/service net URL
|
||||||
func (a *auth) StorageUrl(Internal bool) string {
|
func (a *auth) StorageUrl(Internal bool) string { // nolint
|
||||||
return a.f.credentials.Endpoint
|
return a.f.credentials.Endpoint
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -46,7 +46,7 @@ func (a *auth) Token() string {
|
||||||
}
|
}
|
||||||
|
|
||||||
// The CDN url if available
|
// The CDN url if available
|
||||||
func (a *auth) CdnUrl() string {
|
func (a *auth) CdnUrl() string { // nolint
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -44,7 +44,7 @@ func (a *auth) Response(resp *http.Response) error {
|
||||||
|
|
||||||
// The public storage URL - set Internal to true to read
|
// The public storage URL - set Internal to true to read
|
||||||
// internal/service net URL
|
// internal/service net URL
|
||||||
func (a *auth) StorageUrl(Internal bool) string {
|
func (a *auth) StorageUrl(Internal bool) string { // nolint
|
||||||
if a.storageURL != "" {
|
if a.storageURL != "" {
|
||||||
return a.storageURL
|
return a.storageURL
|
||||||
}
|
}
|
||||||
|
@ -66,7 +66,7 @@ func (a *auth) Token() string {
|
||||||
}
|
}
|
||||||
|
|
||||||
// The CDN url if available
|
// The CDN url if available
|
||||||
func (a *auth) CdnUrl() string {
|
func (a *auth) CdnUrl() string { // nolint
|
||||||
if a.parentAuth == nil {
|
if a.parentAuth == nil {
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
|
@ -221,7 +221,7 @@ func swiftConnection(name string) (*swift.Connection, error) {
|
||||||
return nil, errors.Wrap(err, "failed to read environment variables")
|
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.Authenticated() {
|
||||||
if c.UserName == "" && c.UserId == "" {
|
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)")
|
return nil, errors.New("user name or user id not found for authentication (and no storage_url+auth_token is provided)")
|
||||||
|
|
Loading…
Reference in a new issue