Remove all useless catch block useless variables.

This commit is contained in:
Lucas Michot
2024-10-31 15:19:37 +01:00
parent 79d5434da2
commit b1d04912a0
13 changed files with 22 additions and 22 deletions

View File

@@ -67,7 +67,7 @@ function format_docker_command_output_to_json($rawOutput): Collection
return $outputLines
->reject(fn ($line) => empty($line))
->map(fn ($outputLine) => json_decode($outputLine, true, flags: JSON_THROW_ON_ERROR));
} catch (\Throwable $e) {
} catch (\Throwable) {
return collect([]);
}
}
@@ -104,7 +104,7 @@ function format_docker_envs_to_json($rawOutput)
return [$env[0] => $env[1]];
});
} catch (\Throwable $e) {
} catch (\Throwable) {
return collect([]);
}
}
@@ -510,7 +510,7 @@ function fqdnLabelsForTraefik(string $uuid, Collection $domains, bool $is_force_
}
}
}
} catch (\Throwable $e) {
} catch (\Throwable) {
continue;
}
}