diff --git a/cmd/bucket-targets.go b/cmd/bucket-targets.go index 36d7d8009..f5ad765fb 100644 --- a/cmd/bucket-targets.go +++ b/cmd/bucket-targets.go @@ -129,11 +129,7 @@ func (sys *BucketTargetSys) SetTarget(ctx context.Context, bucket string, tgt *m sys.Lock() defer sys.Unlock() - tgts, ok := sys.targetsMap[bucket] - if !ok { - return BucketRemoteTargetNotFound{Bucket: bucket} - } - + tgts := sys.targetsMap[bucket] newtgts := make([]madmin.BucketTarget, len(tgts)) labels := make(map[string]struct{}, len(tgts)) found := false