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

Unified Diff: milo/common/config.go

Issue 2981373002: Milo console importer: fix small bug (Closed)
Patch Set: derp Created 3 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: milo/common/config.go
diff --git a/milo/common/config.go b/milo/common/config.go
index 6c9dc91232d29d1fdbb105b2207df108e2d9c8b1..9fbbec2f81eacec38822699bbeda7a7783dc6dbb 100644
--- a/milo/common/config.go
+++ b/milo/common/config.go
@@ -343,7 +343,9 @@ func UpdateConsoles(c context.Context) error {
// Print some stats.
processedConsoles := 0
for _, cons := range knownProjects {
- processedConsoles += cons.Len()
+ if cons != nil {
+ processedConsoles += cons.Len()
+ }
}
logging.Infof(
c, "processed %d consoles over %d projects", len(knownProjects), processedConsoles)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698