remove unnecessary else

This commit is contained in:
Pavel 2024-01-14 17:22:09 +03:00
parent c583494fe7
commit 881add8f6d

@ -216,8 +216,6 @@ func (r *PromoCodeRepository) ActivatePromo(ctx context.Context, req *models.Act
"activationCount": bson.M{"$gt": 0},
"dueTo": bson.M{"$gt": time.Now().Unix()},
}
} else {
return errors.New("codeword or xid is required")
}
update := bson.M{