Skip to content

Commit

Permalink
fix shadow variable
Browse files Browse the repository at this point in the history
  • Loading branch information
AnuchitO committed May 19, 2024
1 parent 5cc27b5 commit 667d562
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/spender/spender_it_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ func TestGetAllSpenderIT(t *testing.T) {

func getTestDatabaseFromConfig() (*sql.DB, error) {
cfg := config.Parse("DOCKER")
sql, err := sql.Open("postgres", cfg.PostgresURI())
conn, err := sql.Open("postgres", cfg.PostgresURI())
if err != nil {
return nil, err
}
return sql, nil
return conn, nil
}

0 comments on commit 667d562

Please sign in to comment.