Skip to content

Commit

Permalink
Fix runner script
Browse files Browse the repository at this point in the history
  • Loading branch information
Elanis committed May 7, 2024
1 parent 62cd02a commit f4dcaca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion runner/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,8 @@ async function setBuildData(processPath, platformArch, buildSize, buildTime) {
*/
(async() => {
let processId = 0;
const benchmarkData = JSON.parse(fs.readFileSync('benchmarks.json'))[getCurrentPlatformArch()].benchmarkData;
const currPlatformData = JSON.parse(fs.readFileSync('benchmarks.json'))[getCurrentPlatformArch()] || { benchmarkData: {} };
const benchmarkData = currPlatformData.benchmarkData;

for(const { app, path, exe, packageJsonVersionsNeeded, build } of processes) {
if(exe === 'TODO') {
Expand Down

0 comments on commit f4dcaca

Please sign in to comment.