formatAnomalyNote returns a formatted anomaly note for table rendering with a warning emoji prefix when isAnomaly is true, otherwise returns an empty string.
(isAnomaly bool, anomalyNote string)
| 70 | // formatAnomalyNote returns a formatted anomaly note for table rendering |
| 71 | // with a warning emoji prefix when isAnomaly is true, otherwise returns an empty string. |
| 72 | func formatAnomalyNote(isAnomaly bool, anomalyNote string) string { |
| 73 | if isAnomaly { |
| 74 | return "⚠️ " + anomalyNote |
| 75 | } |
| 76 | return "" |
| 77 | } |
no outgoing calls
no test coverage detected