Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1049)

Unified Diff: appengine/cmd/milo/settings/funcs.go

Issue 2134673003: milo: buildbucket builer view (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-go@master
Patch Set: rebased and regenerated expectations Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « appengine/cmd/milo/frontend/testdata/buildbucket ('k') | appengine/cmd/milo/swarming/build.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/cmd/milo/settings/funcs.go
diff --git a/appengine/cmd/milo/settings/funcs.go b/appengine/cmd/milo/settings/funcs.go
index d91a512dbc2c8c0a9fe089b8adf1f21d35570f26..acca4c5e09060a6194572ff2d7f6961df8c9cf9f 100644
--- a/appengine/cmd/milo/settings/funcs.go
+++ b/appengine/cmd/milo/settings/funcs.go
@@ -113,8 +113,13 @@ var linkifyTemplate = template.Must(
// linkify turns a resp.Link struct into a canonical link.
func linkify(link *resp.Link) template.HTML {
+ if link == nil {
+ return ""
+ }
buf := bytes.Buffer{}
- linkifyTemplate.Execute(&buf, link)
+ if err := linkifyTemplate.Execute(&buf, link); err != nil {
+ panic(err)
+ }
return template.HTML(buf.Bytes())
}
« no previous file with comments | « appengine/cmd/milo/frontend/testdata/buildbucket ('k') | appengine/cmd/milo/swarming/build.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698