Skip to content

Commit ed04ae9

Browse files
authored
Merge pull request #451 from jcreedcmu/jcreed/tiny-promisify-fix
Remove unnecessary promisify.
2 parents ff8e72a + dfb7a8f commit ed04ae9

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

extensions/ql-vscode/src/run-queries.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import * as crypto from 'crypto';
22
import * as fs from 'fs-extra';
33
import * as path from 'path';
44
import * as tmp from 'tmp';
5-
import { promisify } from 'util';
65
import * as vscode from 'vscode';
76
import { ErrorCodes, ResponseError } from 'vscode-languageclient';
87

@@ -224,7 +223,7 @@ async function convertToQlPath(filePath: string): Promise<string> {
224223
} else {
225224
const dir = await convertToQlPath(path.dirname(filePath));
226225
const fileName = path.basename(filePath);
227-
const fileNames = await promisify<string, string[]>(fs.readdir)(dir);
226+
const fileNames = await fs.readdir(dir);
228227
for (const name of fileNames) {
229228
// Leave the locale argument empty so that the default OS locale is used.
230229
// We do this because this operation works on filesystem entities, which

0 commit comments

Comments
 (0)