Skip to content

Commit

Permalink
fix: only show summary when not empty (#194)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonsilberman authored Aug 1, 2019
1 parent 22dd6f2 commit 16fcb8f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions packages/@best/github-integration/src/analyze.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,14 @@ function generateCommentWithTables(result: BenchmarkComparison, handler: (node:
if (node.type === "project" || node.type === "group") {
const markdownTables = handler(node, baseCommit, targetCommit);

return {
...tables,
[node.name]: markdownTables
if (markdownTables.length) {
return {
...tables,
[node.name]: markdownTables
}
}

return tables;
}

return tables;
Expand Down

0 comments on commit 16fcb8f

Please sign in to comment.