mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2024-11-18 10:29:43 +00:00
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:
parent
5bf538c5ec
commit
7694deec83
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue