summaryrefslogtreecommitdiff
path: root/vendor/github.com/jackc/pgconn/config.go
diff options
context:
space:
mode:
authorLibravatar dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>2023-07-24 10:14:16 +0000
committerLibravatar GitHub <noreply@github.com>2023-07-24 10:14:16 +0000
commit8b71567f9e9c038e750855ebe297d7a40ba9efd2 (patch)
treefae733650843ecaa8cbadf9129d7740e642642cd /vendor/github.com/jackc/pgconn/config.go
parent[chore]: Bump go.uber.org/automaxprocs from 1.5.2 to 1.5.3 (#2020) (diff)
downloadgotosocial-8b71567f9e9c038e750855ebe297d7a40ba9efd2.tar.xz
[chore]: Bump github.com/jackc/pgconn from 1.14.0 to 1.14.1 (#2024)
Diffstat (limited to 'vendor/github.com/jackc/pgconn/config.go')
-rw-r--r--vendor/github.com/jackc/pgconn/config.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/vendor/github.com/jackc/pgconn/config.go b/vendor/github.com/jackc/pgconn/config.go
index 4080f2c6a..36b74c4a3 100644
--- a/vendor/github.com/jackc/pgconn/config.go
+++ b/vendor/github.com/jackc/pgconn/config.go
@@ -366,9 +366,9 @@ func ParseConfigWithOptions(connString string, options ParseConfigOptions) (*Con
config.TLSConfig = fallbacks[0].TLSConfig
config.Fallbacks = fallbacks[1:]
- passfile, err := pgpassfile.ReadPassfile(settings["passfile"])
- if err == nil {
- if config.Password == "" {
+ if config.Password == "" {
+ passfile, err := pgpassfile.ReadPassfile(settings["passfile"])
+ if err == nil {
host := config.Host
if network, _ := NetworkAddress(config.Host, config.Port); network == "unix" {
host = "localhost"