From a2bb06fd170762b0e1375616314a6f09dfc45cf8 Mon Sep 17 00:00:00 2001 From: Cody Littley Date: Thu, 24 Oct 2024 12:00:15 -0500 Subject: [PATCH] lint Signed-off-by: Cody Littley --- relay/dataplane/s3_client.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/relay/dataplane/s3_client.go b/relay/dataplane/s3_client.go index 3e2e57599..fa92a9c7e 100644 --- a/relay/dataplane/s3_client.go +++ b/relay/dataplane/s3_client.go @@ -44,6 +44,7 @@ func NewS3Client( sess, err := session.NewSession(config.AWSConfig) if err != nil { + cancel() return nil, err } svc := s3.New(sess) @@ -145,7 +146,7 @@ func (s *s3Client) createBucketIfNeeded() error { if err == nil { // Bucket exists return nil - } else if s.config.AutoCreateBucket == false { + } else if !s.config.AutoCreateBucket { return err }