build/changelog.ts
Function postToDiscord
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function postToDiscord():Promise<void> {
return new Promise((resolve, reject) => {
const discord = new Client({
intents: [GatewayIntentBits.Guilds],
});
Avoid too many return
statements within this function. Open
Open
return reject(e);