From 7694deec8345311e37662798219a21bd32c8e431 Mon Sep 17 00:00:00 2001 From: Moritz Marquardt Date: Tue, 16 Apr 2024 21:56:45 +0200 Subject: [PATCH] Fix missing return on redis parsing issues Suggested-By: Gusted (https://codeberg.org/Codeberg/pages-server/pulls/301/files#issuecomment-1732054) --- server/startup.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server/startup.go b/server/startup.go index 925cfd1..b10f93b 100644 --- a/server/startup.go +++ b/server/startup.go @@ -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) }