Skip to content

Commit c895c6a

Browse files
committed
fix linter
1 parent 2ecfcbe commit c895c6a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/model/dbConn.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,13 @@ function init(host, db, port, options, callback, fullUri = null) {
5555
let lastError;
5656
const maxRetries = config.getConfig().mongodb?.retries || constants.DEFAULT_MONGODB_RETRIES;
5757

58+
function addPort(item) {
59+
return `${item}:${port}`;
60+
}
61+
5862
if (fullUri) {
5963
url = fullUri;
6064
} else {
61-
function addPort(item) {
62-
return `${item}:${port}`;
63-
}
64-
6565
url = 'mongodb://';
6666

6767
if (options.auth) {

0 commit comments

Comments
 (0)