From 2b721c2cea8ef74898b45e2f2357b763e42c0a56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andi=20Pa=CC=88tzold?= Date: Sat, 2 Dec 2023 02:41:39 +0100 Subject: [PATCH] refactor: make `findRow` private --- src/Database.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Database.ts b/src/Database.ts index d9eba113..218cefb3 100644 --- a/src/Database.ts +++ b/src/Database.ts @@ -130,7 +130,7 @@ export class Database { const row = pageRow & 0xff; const pageBuffer = await this.getPage(page); - return this.findRow(pageBuffer, row); + return this.#findRow(pageBuffer, row); } /** @@ -138,7 +138,7 @@ export class Database { * * @see https://github.com/brianb/mdbtools/blob/d6f5745d949f37db969d5f424e69b54f0da60b9b/src/libmdb/data.c#L126-L138 */ - findRow(pageBuffer: Buffer, row: number): Buffer { + #findRow(pageBuffer: Buffer, row: number): Buffer { const rco = this.#format.dataPage.recordCountOffset; if (row > 1000) {