Skip to content

Commit 57beda4

Browse files
committed
misc-helper handle-pr: remove redundant notes.set() call
The `CIHelper.handlePR()` method already took care of updating the notes, no need to do it again. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent e36de6e commit 57beda4

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

script/misc-helper.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -365,11 +365,7 @@ const commandOptions = commander.opts<ICommanderOptions>();
365365
}
366366

367367
const [notesUpdated2, optionsUpdated2] = await ci.handlePR(pullRequestURL, options);
368-
if (notesUpdated2) {
369-
notesUpdated = true;
370-
}
371-
if (optionsUpdated || optionsUpdated2) {
372-
await ci.notes.set("", options, true);
368+
if (notesUpdated2 || optionsUpdated || optionsUpdated2) {
373369
notesUpdated = true;
374370
}
375371
console.log(`Notes were ${notesUpdated ? "" : "not "}updated`);

0 commit comments

Comments
 (0)