From b52c3fb61e622a8f8935f27eac2e9fe24453045d Mon Sep 17 00:00:00 2001 From: Matthew Penner Date: Sun, 6 Dec 2020 15:25:11 -0700 Subject: [PATCH] Cleanup backup/backup_s3.go --- server/backup/backup_s3.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/backup/backup_s3.go b/server/backup/backup_s3.go index a5b3d51..74b9add 100644 --- a/server/backup/backup_s3.go +++ b/server/backup/backup_s3.go @@ -124,8 +124,7 @@ func (s *S3Backup) generateRemoteRequest(rc io.ReadCloser) error { } // Attempt to upload the part. - _, err := handlePart(part, partSize) - if err != nil { + if _, err := handlePart(part, partSize); err != nil { l.WithField("part_id", part).WithError(err).Warn("failed to upload part") return err }