Skip to content

Commit 3218862

Browse files
committed
chore: change TODO comment
1 parent 0127e4f commit 3218862

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/operations/profiling_level.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type { Callback } from '../utils';
33
import type { Server } from '../sdam/server';
44
import type { Db } from '../db';
55
import type { ClientSession } from '../sessions';
6-
import { MongoDriverError, MongoInvalidArgumentError } from '../error';
6+
import { MongoDriverError } from '../error';
77

88
/** @public */
99
export type ProfilingLevelOptions = CommandOperationOptions;
@@ -24,10 +24,10 @@ export class ProfilingLevelOperation extends CommandOperation<string> {
2424
if (was === 0) return callback(undefined, 'off');
2525
if (was === 1) return callback(undefined, 'slow_only');
2626
if (was === 2) return callback(undefined, 'all');
27-
// TODO(NODE-3483): Add MongoCommandOperationError here
27+
// TODO(NODE-3483)
2828
return callback(new MongoDriverError(`Illegal profiling level value ${was}`));
2929
} else {
30-
// TODO(NODE-3483): Add MongoCommandOperationError
30+
// TODO(NODE-3483): Consider MongoUnexpectedServerResponseError
3131
err != null ? callback(err) : callback(new MongoDriverError('Error with profile command'));
3232
}
3333
});

0 commit comments

Comments
 (0)