displayName returns a user's login for the terminal. A null user shows as ghost, like a deleted user in gh pr view, so callers use it only when the user's action has a time.
(u *client.Actor)
| 319 | // ghost, like a deleted user in gh pr view, so callers use it only when the |
| 320 | // user's action has a time. |
| 321 | func displayName(u *client.Actor) string { |
| 322 | if u == nil { |
| 323 | return "ghost" |
| 324 | } |
| 325 | return u.Login |
| 326 | } |
| 327 | |
| 328 | // login returns a user's login, or an empty string for a null user. |
| 329 | func login(u *client.Actor) string { |
no outgoing calls
no test coverage detected