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

Side by Side Diff: milo/appengine/backends/swarming/html.go

Issue 2944983003: [milo] {buildbucket,buildbot,swarming,logdog} -> backends/*. (Closed)
Patch Set: Created 3 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The LUCI Authors. All rights reserved. 1 // Copyright 2015 The LUCI Authors. All rights reserved.
2 // Use of this source code is governed under the Apache License, Version 2.0 2 // Use of this source code is governed under the Apache License, Version 2.0
3 // that can be found in the LICENSE file. 3 // that can be found in the LICENSE file.
4 4
5 package swarming 5 package swarming
6 6
7 import ( 7 import (
8 "errors" 8 "errors"
9 "fmt" 9 "fmt"
10 "net/http" 10 "net/http"
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 return http.StatusInternalServerError 136 return http.StatusInternalServerError
137 } 137 }
138 138
139 // isAPINotFound returns true if err is a HTTP 404 API response. 139 // isAPINotFound returns true if err is a HTTP 404 API response.
140 func isAPINotFound(err error) bool { 140 func isAPINotFound(err error) bool {
141 if apiErr, ok := err.(*googleapi.Error); ok && apiErr.Code == http.Statu sNotFound { 141 if apiErr, ok := err.(*googleapi.Error); ok && apiErr.Code == http.Statu sNotFound {
142 return true 142 return true
143 } 143 }
144 return false 144 return false
145 } 145 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698