fix: invert check
This commit is contained in:
parent
989ed70265
commit
6a9eede07d
|
@ -89,7 +89,7 @@ func (r *RenterDefault) CreateBucketIfNotExists(bucket string) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
if strings.Contains(err.Error(), api.ErrBucketNotFound.Error()) {
|
if !strings.Contains(err.Error(), api.ErrBucketNotFound.Error()) {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue