Skip to content

Commit

Permalink
use defer writer.Stop()
Browse files Browse the repository at this point in the history
  • Loading branch information
go-to-k committed Apr 13, 2024
1 parent 2f30cb5 commit 8406e8c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/wrapper/s3_wrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ func (s *S3Wrapper) ClearS3Objects(

writer := uilive.New()
writer.Start()
defer writer.Stop()

io.Logger.Info().Msgf("%v Checking...", bucketName)

Expand Down Expand Up @@ -115,8 +116,6 @@ func (s *S3Wrapper) ClearS3Objects(
return err
}

writer.Stop()

if errorStr != "" {
return fmt.Errorf("DeleteObjectsError: followings %v", errorStr)
}
Expand Down

0 comments on commit 8406e8c

Please sign in to comment.