fix(platform): don't log if issues are disabled when closing (#30267)

This commit is contained in:
Rhys Arkins 2024-07-20 13:13:04 +02:00 committed by GitHub
parent ca904f74c1
commit 702ffbc9c2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 0 additions and 6 deletions

View file

@ -867,9 +867,6 @@ const platform: Platform = {
async ensureIssueClosing(title: string): Promise<void> {
logger.debug(`ensureIssueClosing(${title})`);
if (config.hasIssuesEnabled === false) {
logger.info(
'Cannot ensure issue because issues are disabled in this repository',
);
return;
}
const issueList = await platform.getIssueList();

View file

@ -1390,9 +1390,6 @@ export async function ensureIssueClosing(title: string): Promise<void> {
logger.trace(`ensureIssueClosing(${title})`);
// istanbul ignore if
if (config.hasIssuesEnabled === false) {
logger.info(
'Cannot ensure issue because issues are disabled in this repository',
);
return;
}
const issueList = await getIssueList();