Skip to content

Commit 47cd385

Browse files
committed
chore: pr improvements
1 parent 1c5a801 commit 47cd385

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/common/config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -279,17 +279,17 @@ export function warnAboutDeprecatedCliArgs(
279279
warn: (msg: string) => void
280280
): void {
281281
console.log(args);
282-
let wasWarned = false;
282+
let usedDeprecatedArgument = false;
283283
// the first position argument should be used
284284
// instead of --connectionString, as it's how the mongosh works.
285285
if (args.connectionString) {
286-
wasWarned = true;
286+
usedDeprecatedArgument = true;
287287
warn(
288288
"The --connectionString argument is deprecated. Prefer using the first positional argument for the connection string or the MDB_MCP_CONNECTION_STRING environment variable."
289289
);
290290
}
291291

292-
if (wasWarned) {
292+
if (usedDeprecatedArgument) {
293293
warn("Refer to https://www.mongodb.com/docs/mcp-server/get-started/ for setting up the MCP Server.");
294294
}
295295
}

0 commit comments

Comments
 (0)