File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
186186async function writeBinaryToPath ( outputPath : string , data : BinaryOutput ) : Promise < void > {
187- await getFs ( ) . writeFileSync ( outputPath , data ) ;
187+ getFs ( ) . writeFileSync ( outputPath , data ) ;
188188}
189189
190190async function writeTextToPath ( outputPath : string , text : string ) : Promise < void > {
191- await getFs ( ) . writeFileSync ( outputPath , text , 'utf8' ) ;
191+ getFs ( ) . writeFileSync ( outputPath , text , 'utf8' ) ;
192192}
193193
194194async function pathExists ( path : string ) : Promise < boolean > {
You can’t perform that action at this time.
0 commit comments