(agent codersdk.WorkspaceAgent, url string)
| 367 | } |
| 368 | |
| 369 | func troubleshootingMessage(agent codersdk.WorkspaceAgent, url string) string { |
| 370 | m := "For more information and troubleshooting, see " + url |
| 371 | if agent.TroubleshootingURL != "" { |
| 372 | m += " and " + agent.TroubleshootingURL |
| 373 | } |
| 374 | return m |
| 375 | } |
| 376 | |
| 377 | // safeDuration returns a-b. If a or b is nil, it returns 0. |
| 378 | // This is because we often dereference a time pointer, which can |
no outgoing calls
no test coverage detected