diff options
author | Nick White <git@njw.name> | 2021-07-13 11:54:00 +0100 |
---|---|---|
committer | Nick White <git@njw.name> | 2021-07-13 11:54:00 +0100 |
commit | 45b0c3ed61b1a7b7d18090f483c5d9ff9cddec7b (patch) | |
tree | 13de0f1a0ac47c38e172e4082e6345a4c511e1bf /aws.go | |
parent | e22c16ca84163636d674fb0935156f466169e1a3 (diff) |
gofmt
Diffstat (limited to 'aws.go')
-rw-r--r-- | aws.go | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -383,8 +383,8 @@ func (a *AwsConn) ListObjectsWithMeta(bucket string, prefix string) ([]ObjMeta, func (a *AwsConn) ListObjectWithMeta(bucket string, prefix string) (ObjMeta, error) { var obj ObjMeta err := a.s3svc.ListObjectsV2Pages(&s3.ListObjectsV2Input{ - Bucket: aws.String(bucket), - Prefix: aws.String(prefix), + Bucket: aws.String(bucket), + Prefix: aws.String(prefix), MaxKeys: aws.Int64(1), }, func(page *s3.ListObjectsV2Output, last bool) bool { for _, r := range page.Contents { @@ -421,12 +421,12 @@ func (a *AwsConn) DeleteObjects(bucket string, keys []string) error { // s3.DeleteObjects can only take up to 1000 keys at a time, // so if necessary delete those collected so far and empty // the objs queue - if i % 1000 == 1 { + if i%1000 == 1 { _, err := a.s3svc.DeleteObjects(&s3.DeleteObjectsInput{ Bucket: aws.String(bucket), Delete: &s3.Delete{ Objects: objs, - Quiet: aws.Bool(true), + Quiet: aws.Bool(true), }, }) if err != nil { @@ -439,7 +439,7 @@ func (a *AwsConn) DeleteObjects(bucket string, keys []string) error { Bucket: aws.String(bucket), Delete: &s3.Delete{ Objects: objs, - Quiet: aws.Bool(true), + Quiet: aws.Bool(true), }, }) return err |