diff --git a/cmd/bucket-replication-handlers.go b/cmd/bucket-replication-handlers.go index e61a2d261dbc4..65246518515c8 100644 --- a/cmd/bucket-replication-handlers.go +++ b/cmd/bucket-replication-handlers.go @@ -277,6 +277,7 @@ func (api objectAPIHandlers) ResetBucketReplicationStartHandler(w http.ResponseW Bucket: bucket, Err: fmt.Errorf("invalid query parameter older-than %s for %s : %w", durationStr, bucket, err), }), r.URL) + return } } resetBeforeDate := UTCNow().AddDate(0, 0, -1*int(days/24)) @@ -347,6 +348,7 @@ func (api objectAPIHandlers) ResetBucketReplicationStartHandler(w http.ResponseW default: writeErrorResponseJSON(ctx, w, toAPIError(ctx, err), r.URL) } + return } targets, err := globalBucketTargetSys.ListBucketTargets(ctx, bucket) if err != nil {