LatestBuild returns the Latest Build from the ExtractLatestBuild handler.
(r *http.Request)
| 41 | |
| 42 | // LatestBuild returns the Latest Build from the ExtractLatestBuild handler. |
| 43 | func LatestBuild(r *http.Request) database.WorkspaceBuild { |
| 44 | wb, ok := latestBuildOptional(r) |
| 45 | if !ok { |
| 46 | panic("developer error: agent middleware not provided or was made optional") |
| 47 | } |
| 48 | return wb |
| 49 | } |
| 50 | |
| 51 | type ExtractWorkspaceAgentAndLatestBuildConfig struct { |
| 52 | DB database.Store |
no test coverage detected