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

Side by Side Diff: go/src/infra/gae/libs/meta/eg.go

Issue 998153002: Fix meta lib to be correctly compilable. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: reference doc url Created 5 years, 9 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
« no previous file with comments | « go/src/infra/gae/libs/meta/doc.go ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // +build appengine
6
5 package meta 7 package meta
6 8
7 import ( 9 import (
8 "appengine/datastore" 10 "appengine/datastore"
9 11
10 "infra/gae/libs/context" 12 "infra/gae/libs/context"
11 "infra/libs/errors" 13 "infra/libs/errors"
12 ) 14 )
13 15
14 var mark = errors.MakeMarkFn("eg") 16 var mark = errors.MakeMarkFn("eg")
(...skipping 21 matching lines...) Expand all
36 err := c.Get(egm) 38 err := c.Get(egm)
37 if err != datastore.ErrNoSuchEntity { 39 if err != datastore.ErrNoSuchEntity {
38 err = mark(err) 40 err = mark(err)
39 } else { 41 } else {
40 // this is OK for callers. The version of the entity group is ef fectively 0 42 // this is OK for callers. The version of the entity group is ef fectively 0
41 // in this case. 43 // in this case.
42 err = nil 44 err = nil
43 } 45 }
44 return egm.Version, err 46 return egm.Version, err
45 } 47 }
OLDNEW
« no previous file with comments | « go/src/infra/gae/libs/meta/doc.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698