Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
baileympearson committed Sep 4, 2024
1 parent 388dd65 commit ea2d4ce
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_"
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_"
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,9 @@ describe('utf8 validation with cursors', function () {
if (providedBuffer.includes(targetBytes)) {
if (providedBuffer.split(targetBytes).length !== 2) {
sinon.restore();
const message = `too many target bytes sequences: received ${providedBuffer.split(targetBytes).length}\n. command: ${inspect(deserialize(args[0]), { depth: Infinity })}`;
const message = `too many target bytes sequences: received ${
providedBuffer.split(targetBytes).length
}\n. command: ${inspect(deserialize(args[0]), { depth: Infinity })}`;
throw new Error(message);
}
const buffer = Buffer.from(providedBuffer.replace(targetBytes, 'c301'.repeat(8)), 'hex');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ async function runTaskGroup(collection: Collection, count: 10 | 100 | 1000) {

async function ensurePoolIsFull(client: MongoClient): Promise<boolean> {
let connectionCount = 0;
// eslint-disable-next-line @typescript-eslint/no-unused-vars

for await (const _event of on(client, 'connectionCreated')) {
connectionCount++;
if (connectionCount === POOL_SIZE * 2) {
Expand Down

0 comments on commit ea2d4ce

Please sign in to comment.