From 03aeef58ded0edf95271eaca85aae91d950bc36f Mon Sep 17 00:00:00 2001 From: MrBeanDev <34623886+mrbeandev@users.noreply.github.com> Date: Sun, 15 Feb 2026 14:26:05 +0530 Subject: [PATCH] Update pkg/doctor/doctor.go Co-authored-by: John Gibb --- pkg/doctor/doctor.go | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/pkg/doctor/doctor.go b/pkg/doctor/doctor.go index a9d9b151d..e3406badd 100644 --- a/pkg/doctor/doctor.go +++ b/pkg/doctor/doctor.go @@ -22,25 +22,19 @@ type Check struct { } // Status represents the status of a check -type Status int +type Status string const ( - StatusOK Status = iota - StatusWarning - StatusError + StatusOK Status = "✅" + StatusWarning Status = "⚠️" + StatusError Status = "❌" ) func (s Status) String() string { - switch s { - case StatusOK: - return "✅" - case StatusWarning: - return "⚠️" - case StatusError: - return "❌" - default: + if s == "" { return "❓" } + return string(s) } // Doctor runs all diagnostic checks