Skip to content

Commit f912a3d

Browse files
committed
fix comments
1 parent 1894127 commit f912a3d

File tree

1 file changed

+3
-4
lines changed
  • dev-packages/node-overhead-gh-action

1 file changed

+3
-4
lines changed

dev-packages/node-overhead-gh-action/index.mjs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ async function fetchPreviousComment(octokit, repo, pr) {
2929
issue_number: pr.number,
3030
});
3131

32-
const sizeLimitComment = commentList.find(comment => comment.body.startsWith(NODE_OVERHEAD_HEADING));
33-
return !sizeLimitComment ? null : sizeLimitComment;
32+
return commentList.find(comment => comment.body.startsWith(NODE_OVERHEAD_HEADING));
3433
}
3534

3635
async function run() {
@@ -51,12 +50,12 @@ async function run() {
5150
const octokit = getOctokit(githubToken);
5251
const resultsFilePath = getResultsFilePath();
5352

54-
// If we have no comparison branch, we just run size limit & store the result as artifact
53+
// If we have no comparison branch, we just run overhead check & store the result as artifact
5554
if (!comparisonBranch) {
5655
return runNodeOverheadOnComparisonBranch();
5756
}
5857

59-
// Else, we run size limit for the current branch, AND fetch it for the comparison branch
58+
// Else, we run overhead check for the current branch, AND fetch it for the comparison branch
6059
let base;
6160
let current;
6261
let baseIsNotLatest = false;

0 commit comments

Comments
 (0)