diff --git a/dashboard/app/build/ui.go b/dashboard/app/build/ui.go index 816d13fe..11ad6974 100644 --- a/dashboard/app/build/ui.go +++ b/dashboard/app/build/ui.go @@ -158,10 +158,10 @@ func (s builderOrder) Less(i, j int) bool { return pi < pj } -func builderPriority(builder string) int { +func builderPriority(builder string) (p int) { // Put -temp builders at the end, always. if strings.HasSuffix(builder, "-temp") { - return 20 + defer func() { p += 20 }() } // Group race builders together. if isRace(builder) {