Skip to content

Commit e841e0a

Browse files
committed
chore: Fix warning capitalization for consistency
Change 'WARNING:' to 'Warning:' to match existing codebase conventions: - pkg/listen/tui/view.go: Updated both expanded and collapsed headers - pkg/listen/proxy/renderer_simple.go: Updated simple renderer - pkg/listen/healthcheck/healthcheck.go: Updated health check messages - pkg/listen/healthcheck/healthcheck_test.go: Updated test expectations All warning messages in the codebase use 'Warning:' (capital W, lowercase rest)
1 parent 9a21f87 commit e841e0a

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

pkg/listen/tui/view.go

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -404,12 +404,7 @@ func (m Model) renderConnectionInfo() string {
404404
if m.serverHealthChecked && !m.serverHealthy {
405405
s.WriteString("\n")
406406
targetURL := m.cfg.TargetURL.Scheme + "://" + m.cfg.TargetURL.Host
407-
// Flash the dot to draw attention
408-
dot := "●"
409-
if m.waitingFrameToggle {
410-
dot = "○"
411-
}
412-
warningMsg := fmt.Sprintf("%s %s is unreachable. Check the server is running", yellowStyle.Render(dot), targetURL)
407+
warningMsg := fmt.Sprintf("%s %s is unreachable. Check the server is running", yellowStyle.Render("● Warning:"), targetURL)
413408
s.WriteString(warningMsg)
414409
s.WriteString("\n")
415410
}
@@ -513,12 +508,7 @@ func (m Model) renderCompactHeader() string {
513508
if m.serverHealthChecked && !m.serverHealthy {
514509
s.WriteString("\n")
515510
targetURL := m.cfg.TargetURL.Scheme + "://" + m.cfg.TargetURL.Host
516-
// Flash the dot to draw attention
517-
dot := "●"
518-
if m.waitingFrameToggle {
519-
dot = "○"
520-
}
521-
warningMsg := fmt.Sprintf("%s %s is unreachable. Check the server is running", yellowStyle.Render(dot), targetURL)
511+
warningMsg := fmt.Sprintf("%s %s is unreachable. Check the server is running", yellowStyle.Render("● Warning:"), targetURL)
522512
s.WriteString(warningMsg)
523513
s.WriteString("\n")
524514
}

0 commit comments

Comments
 (0)