mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-04 06:28:53 +00:00
fix: Ensure promise is returned where applicable
This commit is contained in:
1 parent
f231c53fe8
commit
14cb6b4936
23 files changed
+86
-125
No files matched your search
@@ -15,7 +15,7 @@ export const postBotStats = async ({ client, executionId }: PostBotStatsParams)
|
||||
|
||||
try {
|
||||
if (client.shard?.ids[0] !== 0) {
|
||||
return;
|
||||
return Promise.resolve();
|
||||
}
|
||||
|
||||
let guildCount = 0;
|
||||
@@ -128,7 +128,8 @@ export const postBotStats = async ({ client, executionId }: PostBotStatsParams)
|
||||
|
||||
sites.map((site) => {
|
||||
if (!site.enabled) {
|
||||
return;
|
||||
// return if site is disabled
|
||||
return Promise.resolve();
|
||||
}
|
||||
|
||||
const options = {
|
||||
|
||||
@@ -18,7 +18,7 @@ export const startLoadTest = async ({ client, executionId }: StartLoadTestParams
|
||||
|
||||
if (!loadTestOptions.enabled) {
|
||||
logger.debug('Load test is disabled in options, cancelling.');
|
||||
return;
|
||||
return Promise.resolve();
|
||||
}
|
||||
|
||||
const channelIds = loadTestOptions.channelIdsToJoin;
|
||||
|
||||
Reference in new issue
Block a user