From 788d286eeff9a03c5ae024da1f071350d08f9ff8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Minelli?= <git@minelli.me> Date: Fri, 19 Apr 2024 22:38:16 +0200 Subject: [PATCH] Sonar => Remove code smells --- helpers/Dojo/AssignmentValidator.ts | 2 +- helpers/Dojo/ExerciseDockerCompose.ts | 2 +- helpers/Dojo/ExerciseResultsSanitizerAndValidator.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/helpers/Dojo/AssignmentValidator.ts b/helpers/Dojo/AssignmentValidator.ts index 818a748..0ac4f46 100644 --- a/helpers/Dojo/AssignmentValidator.ts +++ b/helpers/Dojo/AssignmentValidator.ts @@ -288,7 +288,7 @@ class AssignmentValidator { } run() { - void (async () => { + (async () => { try { await this.checkRequirements(); diff --git a/helpers/Dojo/ExerciseDockerCompose.ts b/helpers/Dojo/ExerciseDockerCompose.ts index c76a95e..d06489d 100644 --- a/helpers/Dojo/ExerciseDockerCompose.ts +++ b/helpers/Dojo/ExerciseDockerCompose.ts @@ -75,7 +75,7 @@ class ExerciseDockerCompose { } run(doDown: boolean = false) { - void (async () => { + (async () => { let containerExitCode: number = -1; const filesOverrideArguments = this.composeFileOverride.map(file => `--file "${ file }"`).join(' '); diff --git a/helpers/Dojo/ExerciseResultsSanitizerAndValidator.ts b/helpers/Dojo/ExerciseResultsSanitizerAndValidator.ts index c27722f..b44014d 100644 --- a/helpers/Dojo/ExerciseResultsSanitizerAndValidator.ts +++ b/helpers/Dojo/ExerciseResultsSanitizerAndValidator.ts @@ -77,7 +77,7 @@ class ExerciseResultsSanitizerAndValidator { } run() { - void (async () => { + (async () => { // Results file existence this.events.emit('step', 'CHECK_RESULTS_FILE_EXIST', 'Checking if results file exists'); const resultsFileOriginPath = path.join(this.folderResultsExercise, ClientsSharedConfig.filenames.results); -- GitLab