File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -63,14 +63,14 @@ export function darwin() {
6363
6464function resolveChromePath ( ) {
6565 if ( canAccess ( process . env . CHROME_PATH ) ) {
66- return process . env . CHROME_PATH as string ;
66+ return process . env . CHROME_PATH ;
6767 }
6868
6969 if ( canAccess ( process . env . LIGHTHOUSE_CHROMIUM_PATH ) ) {
7070 log . warn (
7171 'ChromeLauncher' ,
7272 'LIGHTHOUSE_CHROMIUM_PATH is deprecated, use CHROME_PATH env variable instead.' ) ;
73- return process . env . LIGHTHOUSE_CHROMIUM_PATH as string ;
73+ return process . env . LIGHTHOUSE_CHROMIUM_PATH ;
7474 }
7575
7676 return undefined ;
@@ -108,7 +108,7 @@ export function linux() {
108108 executables . forEach ( ( executable : string ) => {
109109 try {
110110 const chromePath =
111- execFileSync ( 'which' , [ executable ] ) . toString ( ) . split ( newLineRegex ) [ 0 ] as string ;
111+ execFileSync ( 'which' , [ executable ] ) . toString ( ) . split ( newLineRegex ) [ 0 ] ;
112112
113113 if ( canAccess ( chromePath ) ) {
114114 installations . push ( chromePath ) ;
You can’t perform that action at this time.
0 commit comments