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

Function displayKey

pkg/workflow/model_alias_validation.go:333–338  ·  view source on GitHub ↗

─── Utilities ──────────────────────────────────────────────────────────────── displayKey returns a human-readable representation of an alias key for use in error messages. The empty-string key (default policy) is shown as `""`.

(key string)

Source from the content-addressed store, hash-verified

331// displayKey returns a human-readable representation of an alias key for use in
332// error messages. The empty-string key (default policy) is shown as `""`.
333func displayKey(key string) string {
334 if key == "" {
335 return `""`
336 }
337 return key
338}

Callers 1

validateModelAliasMapMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected