From def055316780a682efb3807bc8e9f14469c2dad9 Mon Sep 17 00:00:00 2001 From: Elara6331 Date: Sat, 15 Feb 2025 19:07:16 -0800 Subject: [PATCH] Remove unnecessary condition --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 5d29e1a..8b5a09a 100644 --- a/main.go +++ b/main.go @@ -97,7 +97,7 @@ func main() { if err == nil { // Add the index store to the combined store for the repo cs.Add(s) - } else if err != nil { + } else { log.Error("Error opening database", slog.Any("error", err)) os.Exit(1) }