formattedEffectiveUserName formats an effective name for appending to logs. e.g: 'Did xyz (as %s)' or 'Did xyz (as alice )'
()
| 1481 | // formattedEffectiveUserName formats an effective name for appending to logs. |
| 1482 | // e.g: 'Did xyz (as %s)' or 'Did xyz (as <ud>alice</ud>)' |
| 1483 | func (h *handler) formattedEffectiveUserName() string { |
| 1484 | if name := h.taggedEffectiveUserName(); name != "" { |
| 1485 | return " (as " + name + ")" |
| 1486 | } |
| 1487 | |
| 1488 | return "" |
| 1489 | } |
| 1490 | |
| 1491 | // ////// RESPONSES: |
| 1492 |
no test coverage detected