Skip to content

Commit

Permalink
linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lvrach committed Sep 26, 2024
1 parent 18cea90 commit 8553523
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion filemanager/digitaloceanmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func (manager *digitalOceanManager) Upload(ctx context.Context, file *os.File, p
output, err := DOmanager.UploadWithContext(ctx, uploadInput)
if err != nil {
if awsError, ok := err.(awserr.Error); ok && awsError.Code() == "MissingRegion" {
err = fmt.Errorf(fmt.Sprintf(`Bucket '%s' not found.`, manager.Config.Bucket))
err = fmt.Errorf(`Bucket '%s' not found.`, manager.Config.Bucket)
}
return UploadedFile{}, err
}
Expand Down
2 changes: 1 addition & 1 deletion filemanager/s3manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func (m *S3Manager) Upload(ctx context.Context, file *os.File, prefixes ...strin
output, err := s3manager.UploadWithContext(ctx, uploadInput)
if err != nil {
if codeErr, ok := err.(codeError); ok && codeErr.Code() == "MissingRegion" {
err = fmt.Errorf(fmt.Sprintf(`Bucket '%s' not found.`, m.config.Bucket))
err = fmt.Errorf(`Bucket '%s' not found.`, m.config.Bucket)
}
return UploadedFile{}, err
}
Expand Down
2 changes: 1 addition & 1 deletion testhelper/docker/resource/mysql/mysql.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func Setup(pool *dockertest.Pool, d resource.Cleaner, opts ...func(*Config)) (*R
return err
}
if code != 0 {
return fmt.Errorf("mysql not ready:\n%s" + w.String())
return fmt.Errorf("mysql not ready:\n%s", w.String())
}
return nil
})
Expand Down
2 changes: 1 addition & 1 deletion testhelper/docker/resource/postgres/postgres.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func Setup(pool *dockertest.Pool, d resource.Cleaner, opts ...func(*Config)) (*R
return err
}
if code != 0 {
return fmt.Errorf("postgres not ready:\n%s" + w.String())
return fmt.Errorf("postgres not ready:\n%s", w.String())
}

// 2. create a sql.DB and verify connection
Expand Down

0 comments on commit 8553523

Please sign in to comment.