Skip to content

Commit 8daf384

Browse files
authored
Update index.js
Simplifying support for Unix sockets.
1 parent 89fc2f1 commit 8daf384

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

index.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,6 @@ function parse(str) {
2222
config.client_encoding = config.encoding;
2323
}
2424

25-
// primary sockets support, via parameter 'socket':
26-
if (config.socket) {
27-
config.host = config.socket;
28-
return config;
29-
}
30-
31-
// secondary support for unix sockets, when host name ends with '.sock':
3225
if (cs.hosts && cs.hosts[0].type === 'socket') {
3326
return config;
3427
}

0 commit comments

Comments
 (0)