From 16391ce18f07b7088b51b57f40c3ff76c4bb5905 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Tue, 17 Sep 2024 01:46:31 +0800 Subject: [PATCH] :bug: Bug fix again on determine subscriptions --- pkg/internal/services/subscriptions.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/pkg/internal/services/subscriptions.go b/pkg/internal/services/subscriptions.go index cf69323..704cf0f 100644 --- a/pkg/internal/services/subscriptions.go +++ b/pkg/internal/services/subscriptions.go @@ -53,7 +53,6 @@ func SubscribeToUser(user models.Account, target models.Account) (models.Subscri if !errors.Is(err, gorm.ErrRecordNotFound) { return subscription, fmt.Errorf("subscription already exists") } - return subscription, fmt.Errorf("unable to check subscription is exists or not: %v", err) } subscription = models.Subscription{ @@ -71,7 +70,6 @@ func SubscribeToTag(user models.Account, target models.Tag) (models.Subscription if !errors.Is(err, gorm.ErrRecordNotFound) { return subscription, fmt.Errorf("subscription already exists") } - return subscription, fmt.Errorf("unable to check subscription is exists or not: %v", err) } subscription = models.Subscription{ @@ -89,7 +87,6 @@ func SubscribeToCategory(user models.Account, target models.Category) (models.Su if !errors.Is(err, gorm.ErrRecordNotFound) { return subscription, fmt.Errorf("subscription already exists") } - return subscription, fmt.Errorf("unable to check subscription is exists or not: %v", err) } subscription = models.Subscription{