Skip to content

Commit 66c8d2f

Browse files
committed
chore: remove unused code
1 parent 784affd commit 66c8d2f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/common/config.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,10 @@ export function validateConfigKey(key: string): { valid: boolean; suggestion?: s
104104
return { valid: true };
105105
}
106106

107-
// find the closest match for a suggestion
108107
let minLev = Number.MAX_VALUE;
109108
let suggestion = "";
110109

110+
// find the closest match for a suggestion
111111
for (const validKey of ALL_CONFIG_KEYS) {
112112
// check if there is an exact case-insensitive match
113113
if (validKey.toLowerCase() === key.toLowerCase()) {
@@ -288,10 +288,6 @@ function SNAKE_CASE_toCamelCase(str: string): string {
288288
return str.toLowerCase().replace(/([-_][a-z])/g, (group) => group.toUpperCase().replace("_", ""));
289289
}
290290

291-
function camelCaseTo_SNAKE_CASE(str: string): string {
292-
return str.replace(/([a-z])([A-Z])/g, "$1_$2").toUpperCase();
293-
}
294-
295291
// Right now we have arguments that are not compatible with the format used in mongosh.
296292
// An example is using --connectionString and positional arguments.
297293
// We will consolidate them in a way where the mongosh format takes precedence.

0 commit comments

Comments
 (0)