Enable no-unsafe-return rule

This commit is contained in:
Henry Mercer
2024-06-13 19:52:39 +01:00
parent 2f54d9fcfa
commit 1ea11ca775
16 changed files with 30 additions and 26 deletions

2
lib/upload-lib.js generated
View File

@@ -224,7 +224,7 @@ async function uploadPayload(payload, repositoryNwo, logger) {
logger.info(`In test mode. Results are not uploaded. Saving to ${payloadSaveFile}`);
logger.info(`Payload: ${JSON.stringify(payload, null, 2)}`);
fs.writeFileSync(payloadSaveFile, JSON.stringify(payload, null, 2));
return;
return "test-mode-sarif-id";
}
const client = api.getApiClient();
try {