Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
soulgalore committed Nov 29, 2023
1 parent 308fd62 commit 5ef9145
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 17 deletions.
15 changes: 0 additions & 15 deletions lib/plugins/compare/baseline.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,7 @@ export async function getBaseline(id, compareOptions) {
return;
}
}
/*
async function getBaselineFromInternet(url) {
try {
const response = await fetch(url);
return response.json();
} catch (error) {
log.error('Could not fetch', error);
}
}
async function getBaselineFromFile(path) {}
/*
export async function saveBaseline(json, options) {

}*/
export async function saveBaseline(json, name) {
return fs.writeFile(resolve(name), JSON.stringify(json));
}
4 changes: 2 additions & 2 deletions lib/plugins/compare/pug/index.pug
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ each metricGroup, groupName in compare.metrics
}
]
};
var optionsApa = {
var chartOptions = {
showLine: false,
axisX: {

Expand All @@ -124,7 +124,7 @@ each metricGroup, groupName in compare.metrics

}
};
var chart = new Chartist.Line(`#chart-${metricId}`, chartData, optionsApa);
var chart = new Chartist.Line(`#chart-${metricId}`, chartData, chartOptions);

// Take care of series that has the same value
chart.on('draw', function(data) {
Expand Down

0 comments on commit 5ef9145

Please sign in to comment.