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

Unified Diff: service/rawdatastore/checkfilter.go

Issue 1269593002: Fix obviously broken error handling. (Closed) Base URL: https://github.com/luci/gae.git@master
Patch Set: Created 5 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: service/rawdatastore/checkfilter.go
diff --git a/service/rawdatastore/checkfilter.go b/service/rawdatastore/checkfilter.go
index 002c965f5437ede665dab45770b842d0b19526bf..bf091358c7b0a21f0b17b99fc2623fea19845c61 100644
--- a/service/rawdatastore/checkfilter.go
+++ b/service/rawdatastore/checkfilter.go
@@ -70,9 +70,9 @@ func (tcf *checkFilter) PutMulti(keys []Key, vals []PropertyLoadSaver, cb PutMul
}
v := vals[i]
if v == nil {
- if !lme.Assign(i, errors.New("rawdatastore: PutMulti got nil vals entry")) {
- lme.Assign(i, v.Problem())
- }
+ lme.Assign(i, errors.New("rawdatastore: PutMulti got nil vals entry"))
+ } else {
+ lme.Assign(i, v.Problem())
}
}
if me := lme.Get(); me != nil {
« 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