MCPcopy Create free account
hub / github.com/github/gh-aw / formatAnomalyNote

Function formatAnomalyNote

pkg/cli/audit_math_helpers.go:72–77  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.
72func formatAnomalyNote(isAnomaly bool, anomalyNote string) string {
73 if isAnomaly {
74 return "⚠️ " + anomalyNote
75 }
76 return ""
77}

Calls

no outgoing calls

Tested by

no test coverage detected