Skip to content

Commit a6bbcab

Browse files
committed
launcher: nuke 'as string'
1 parent b93ca14 commit a6bbcab

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

chrome-launcher/chrome-finder.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,14 @@ export function darwin() {
6363

6464
function 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);

0 commit comments

Comments
 (0)