From 121444f5a2ca55d5e5738d6fe25c217682542f0a Mon Sep 17 00:00:00 2001 From: Stefan Majer Date: Sat, 19 Aug 2023 11:16:55 +0200 Subject: [PATCH] remove spaces --- cmd/internal/database/postgres/postgres.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/internal/database/postgres/postgres.go b/cmd/internal/database/postgres/postgres.go index 94140e1..79360f1 100644 --- a/cmd/internal/database/postgres/postgres.go +++ b/cmd/internal/database/postgres/postgres.go @@ -176,9 +176,9 @@ func (db *Postgres) Upgrade() error { db.log.Infow("unable to read PG_VERSION", "error", err) return nil } - pgVersion, err := strconv.Atoi(string(pgVersionBytes)) + pgVersion, err := strconv.Atoi(strings.TrimSpace(string(pgVersionBytes))) if err != nil { - db.log.Infow("unable to parse PG_VERSION to an int", "PG_VRSION", string(pgVersionBytes), "error", err) + db.log.Infow("unable to parse PG_VERSION to an int", "PG_VERSION", string(pgVersionBytes), "error", err) return nil }