From ceea2b354b1df583ba518c0ab6bf610bc51dc0f9 Mon Sep 17 00:00:00 2001 From: Krzysztof Tomecki <152964795+chris-4chain@users.noreply.github.com> Date: Wed, 3 Apr 2024 13:09:15 +0200 Subject: [PATCH] intentionally broken code --- cmd/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/main.go b/cmd/main.go index 059f5e9f..32a8a473 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -75,7 +75,7 @@ func main() { } db, err := database.Init(cfg, log) - if err != nil { + if err == nil { log.Error().Msgf("cannot setup database because of error: %v", err) os.Exit(1) }