Skip to content

Commit

Permalink
fix misc issues in scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
williaster committed Dec 20, 2024
1 parent 548f65a commit f43a979
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/compareBuildSizes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ async function compareBuildSizes() {
prevSizes = await masterFileSizesRequest.json();
} catch (error) {
console.log(`Could not fetch file ${PACKAGE_SIZES_FILENAME} from master. Aborting.`);
console.log(error.message);
console.log((error as any).message);

prevSizes = nextSizes;
sameBuild = true;
}

function getPrevSize(name: string, type: string) {
return (prevSizes[name] && prevSizes[name][type]) || 0;
return prevSizes[name]?.[type] || 0;
}

const output: string[] = [
Expand Down

0 comments on commit f43a979

Please sign in to comment.