redis.Nil -> nil

This commit is contained in:
2023-11-10 16:40:26 +09:00
parent 60d0c19256
commit 2e48ff0ca4

View File

@ -97,6 +97,10 @@ func NewRedisonHandler(ctx context.Context, redisClient *redis.Client) *RedisonH
func respToArray[T any](resp any, err error) ([]T, error) {
if err != nil {
if err == redis.Nil {
return nil, nil
}
return nil, err
}