Skip to content

Commit

Permalink
remove spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
majst01 committed Aug 19, 2023
1 parent 402ef21 commit 121444f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/internal/database/postgres/postgres.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 121444f

Please sign in to comment.