Skip to content

Commit

Permalink
chore: no uppercase constant in Go
Browse files Browse the repository at this point in the history
  • Loading branch information
ccoVeille committed Jul 17, 2024
1 parent 0110f98 commit 6f22fa1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/postgres.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type Postgres struct {
}

const (
DEFAULT_PORT = "5432"
defaultPort = "5432"
)

func (db *Postgres) Connect(urlstr string) (err error) {
Expand Down Expand Up @@ -582,7 +582,7 @@ func (db *Postgres) SwitchDatabase(database string) error {
dbname := parsedConn.Path

if port == "" {
port = DEFAULT_PORT
port = defaultPort
}

if dbname == "" {
Expand Down

0 comments on commit 6f22fa1

Please sign in to comment.