11import * as path from "path"
22import * as cp from "child_process"
33import * as vscode from "vscode"
4- import * as nodeWhich from ' which'
4+ import * as nodeWhich from " which"
55
66export const mediaDir = path . join ( __filename , ".." , ".." , "media" )
77
@@ -11,9 +11,9 @@ export const exec = async (command: string): Promise<string> => {
1111 } )
1212}
1313
14- export const execCombined = async ( command : string ) : Promise < { stderr : string , stdout : string } > => {
14+ export const execCombined = async ( command : string ) : Promise < { stderr : string ; stdout : string } > => {
1515 return new Promise ( ( res , rej ) => {
16- cp . exec ( command , ( err , stdout , stderr ) => ( err ? rej ( err ) : res ( { stderr, stdout} ) ) )
16+ cp . exec ( command , ( err , stdout , stderr ) => ( err ? rej ( err ) : res ( { stderr, stdout } ) ) )
1717 } )
1818}
1919
@@ -24,7 +24,9 @@ export const execJSON = async <T>(command: string): Promise<T> => {
2424
2525// binaryExists returns "true" if the binary is found in $PATH
2626export const binaryExists = async ( bin : string ) : Promise < boolean > => {
27- return new Promise ( ( res ) => { nodeWhich ( bin , err => res ( ! err ) ) } )
27+ return new Promise ( ( res ) => {
28+ nodeWhich ( bin , ( err ) => res ( ! err ) )
29+ } )
2830}
2931
3032export const bubbleError = ( f : ( ) => void ) => {
0 commit comments