Fix missing return on redis parsing issues

Suggested-By: Gusted (https://codeberg.org/Codeberg/pages-server/pulls/301/files#issuecomment-1732054)
This commit is contained in:
Moritz Marquardt 2024-04-16 21:56:45 +02:00
parent 5bf538c5ec
commit 7694deec83

View file

@ -84,6 +84,7 @@ func Serve(ctx *cli.Context) error {
opts, err := redis.ParseURL(cfg.Cache.RedisURL) opts, err := redis.ParseURL(cfg.Cache.RedisURL)
if err != nil { if err != nil {
redisErr = err redisErr = err
return nil
} }
return cache.NewRedisCache(name, opts) return cache.NewRedisCache(name, opts)
} }