Skip to content

Commit ce7fb37

Browse files
committed
linter once again
1 parent e097b3e commit ce7fb37

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

maintnotifications/e2e/notiftracker.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ func (a *DiagnosticsAnalysis) Print(t *testing.T) {
367367

368368
// setupNotificationHook adds a notification hook to a cluster client
369369
func setupNotificationHook(client *redis.ClusterClient, hook maintnotifications.NotificationHook) {
370-
client.ForEachShard(context.Background(), func(ctx context.Context, nodeClient *redis.Client) error {
370+
_ = client.ForEachShard(context.Background(), func(ctx context.Context, nodeClient *redis.Client) error {
371371
manager := nodeClient.GetMaintNotificationsManager()
372372
if manager != nil {
373373
manager.AddNotificationHook(hook)
@@ -397,7 +397,7 @@ func setupNotificationHooks(client redis.UniversalClient, hooks ...maintnotifica
397397
// Check if it's a cluster client
398398
if clusterClient, ok := client.(*redis.ClusterClient); ok {
399399
// For cluster clients, add hooks to all shards
400-
clusterClient.ForEachShard(context.Background(), func(ctx context.Context, nodeClient *redis.Client) error {
400+
_ = clusterClient.ForEachShard(context.Background(), func(ctx context.Context, nodeClient *redis.Client) error {
401401
nodeManager := nodeClient.GetMaintNotificationsManager()
402402
if nodeManager != nil {
403403
for _, hook := range hooks {

0 commit comments

Comments
 (0)