Skip to content

Commit

Permalink
launcher: nuke 'as string'
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish committed Jul 13, 2017
1 parent b93ca14 commit a6bbcab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions chrome-launcher/chrome-finder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,14 @@ export function darwin() {

function resolveChromePath() {
if (canAccess(process.env.CHROME_PATH)) {
return process.env.CHROME_PATH as string;
return process.env.CHROME_PATH;
}

if (canAccess(process.env.LIGHTHOUSE_CHROMIUM_PATH)) {
log.warn(
'ChromeLauncher',
'LIGHTHOUSE_CHROMIUM_PATH is deprecated, use CHROME_PATH env variable instead.');
return process.env.LIGHTHOUSE_CHROMIUM_PATH as string;
return process.env.LIGHTHOUSE_CHROMIUM_PATH;
}

return undefined;
Expand Down Expand Up @@ -108,7 +108,7 @@ export function linux() {
executables.forEach((executable: string) => {
try {
const chromePath =
execFileSync('which', [executable]).toString().split(newLineRegex)[0] as string;
execFileSync('which', [executable]).toString().split(newLineRegex)[0];

if (canAccess(chromePath)) {
installations.push(chromePath);
Expand Down

0 comments on commit a6bbcab

Please sign in to comment.