Skip to content

Commit 93a3204

Browse files
committed
Fix tests
1 parent 0a4ca50 commit 93a3204

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/node/src/integrations/contextlines.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ import { NodeClient } from '../client';
1010
const FILE_CONTENT_CACHE = new LRUMap<string, string | null>(100);
1111
const DEFAULT_LINES_OF_CONTEXT = 7;
1212

13-
const readFileAsync = promisify(readFile);
14-
1513
/**
1614
* Resets the file cache. Exists for testing purposes.
1715
* @hidden
@@ -120,7 +118,7 @@ async function readSourceFiles(filenames: Set<string>): Promise<Record<string, s
120118

121119
let content: string | null = null;
122120
try {
123-
content = await readFileAsync(filename, { encoding: 'utf8' });
121+
content = await promisify(readFile)(filename, { encoding: 'utf8' });
124122
} catch (_) {
125123
//
126124
}

0 commit comments

Comments
 (0)