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

Unified Diff: service/datastore/datastore.go

Issue 1530503003: Return error on Get(*Key). (Closed) Base URL: https://github.com/luci/gae.git@master
Patch Set: Created 5 years 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 | service/datastore/datastore_test.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: service/datastore/datastore.go
diff --git a/service/datastore/datastore.go b/service/datastore/datastore.go
index 3b05f392b8b336ec7e1df474475641be8f881b12..fc37d5a2356627066d9c12e122ce46eacccc49c3 100644
--- a/service/datastore/datastore.go
+++ b/service/datastore/datastore.go
@@ -219,6 +219,9 @@ func (d *datastoreImpl) GetAll(q *Query, dst interface{}) error {
}
func isOkType(v reflect.Type) bool {
+ if v == typeOfKey {
+ return false
+ }
if v.Implements(typeOfPropertyLoadSaver) {
return true
}
« no previous file with comments | « no previous file | service/datastore/datastore_test.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698