Skip to content

Commit 0f11c1f

Browse files
committed
fix: pr feedback
1 parent 01226ef commit 0f11c1f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test/unit/error.test.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -451,9 +451,7 @@ describe('MongoErrors', () => {
451451
);
452452
}
453453
} finally {
454-
if (topology) {
455-
topology.close();
456-
}
454+
topology?.close();
457455
}
458456
});
459457
});

0 commit comments

Comments
 (0)