add missing braces, fix type error

This commit is contained in:
Alex Holliday committed 2026-09-23 11:06:25 -07:00
1 parent 5fb26367ed
commit cfe7d2a359
4 files changed
+61 -3

No files matched your search

+1 -1
View File
@@ -150,7 +150,7 @@ export class DockerProvider implements IStatusProvider<DockerStatusPayload> {
private healthFromStatus = (status: string): DockerHealthStatus => {
const match = HEALTH_STATUS.exec(status);
if (!match) return "none";
return match[1] === "health: starting" ? "starting" : match[1];
return match[1] === "health: starting" ? "starting" : (match[1] as DockerHealthStatus);
};
private toContainerSummary(containers: DockerContainerInfo[]): DockerContainerSummary {