Commits

Miki Tebeka  committed 16c37e5

Better name

  • Participants
  • Parent commits 690536f

Comments (0)

Files changed (1)

File shortie/shortie.go

 	Count int64
 }
 
-// getCount return the current count of urls.
-func getCount(ctx appengine.Context) (int64, os.Error) {
+// urlCount return the current count of urls.
+func urlCount(ctx appengine.Context) (int64, os.Error) {
 	key := datastore.NewKey(ctx, counterKind, counterKeyName, 0, nil)
 	counter := new(Counter)
 	if err := datastore.Get(ctx, key, counter); err != nil && err != datastore.ErrNoSuchEntity {
 		params.ShortURL = fullURL(r, id)
 	}
 
-	params.Count, err = getCount(ctx)
+	params.Count, err = urlCount(ctx)
 }
 
 /* redirectHandler handles redirects.