Skip to content

Commit eb62239

Browse files
committed
Remove unused awaits
1 parent 6753cbc commit eb62239

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/utils/io.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ async function readTextFromInput(
172172
encoding: BufferEncoding = 'utf8'
173173
): Promise<string> {
174174
if (typeof input === 'string') {
175-
return await Promise.resolve(getFs().readFileSync(input, encoding));
175+
return Promise.resolve(getFs().readFileSync(input, encoding));
176176
}
177177
if (typeof Buffer !== 'undefined' && Buffer.isBuffer(input)) {
178178
return Promise.resolve(input.toString(encoding));
@@ -184,11 +184,11 @@ async function readTextFromInput(
184184
}
185185

186186
async function writeBinaryToPath(outputPath: string, data: BinaryOutput): Promise<void> {
187-
await getFs().writeFileSync(outputPath, data);
187+
getFs().writeFileSync(outputPath, data);
188188
}
189189

190190
async function writeTextToPath(outputPath: string, text: string): Promise<void> {
191-
await getFs().writeFileSync(outputPath, text, 'utf8');
191+
getFs().writeFileSync(outputPath, text, 'utf8');
192192
}
193193

194194
async function pathExists(path: string): Promise<boolean> {

0 commit comments

Comments
 (0)