Skip to content

Commit

Permalink
finx ins is nil
Browse files Browse the repository at this point in the history
  • Loading branch information
“city55238” authored and “city55238” committed Aug 10, 2023
1 parent b50e68d commit 4a4dd04
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions pkg/client/redis/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package redis

import (
"context"
"errors"
"github.com/douyu/jupiter/pkg/core/constant"
"github.com/douyu/jupiter/pkg/core/singleton"
"github.com/douyu/jupiter/pkg/util/xdebug"
Expand Down Expand Up @@ -54,12 +53,8 @@ func (config *ClusterOptions) BuildCluster() (*ClusterClient, error) {
if err != nil {
return ins, err
}
return ins, nil
}

if ins == nil {
return ins, errors.New("no cluster for " + config.name)
}
return ins, nil
}

Expand Down

0 comments on commit 4a4dd04

Please sign in to comment.