From 6a9eede07d9c3c86b944c716079299cd2892c9ec Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Tue, 26 Mar 2024 23:31:17 -0400 Subject: [PATCH] fix: invert check --- renter/renter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renter/renter.go b/renter/renter.go index 6e24701..ecb90e0 100644 --- a/renter/renter.go +++ b/renter/renter.go @@ -89,7 +89,7 @@ func (r *RenterDefault) CreateBucketIfNotExists(bucket string) error { return nil } - if strings.Contains(err.Error(), api.ErrBucketNotFound.Error()) { + if !strings.Contains(err.Error(), api.ErrBucketNotFound.Error()) { return err }