─── 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)
| 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 `""`. |
| 333 | func displayKey(key string) string { |
| 334 | if key == "" { |
| 335 | return `""` |
| 336 | } |
| 337 | return key |
| 338 | } |
no outgoing calls
no test coverage detected