From 61ce470a5ed4f38114e1586b61bca0413a53989a Mon Sep 17 00:00:00 2001 From: Andrew Gerrand Date: Thu, 28 Aug 2014 10:57:52 +1000 Subject: [PATCH] go.tools/dashboard/app: fix column order for -temp builders LGTM=bradfitz R=bradfitz CC=golang-codereviews https://golang.org/cl/138760044 --- dashboard/app/build/ui.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {