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
1 changed files with 1 additions and 0 deletions

View File

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