Skip to content

Commit

Permalink
all: fixed minor typos (#225)
Browse files Browse the repository at this point in the history
* datastore: fixed minor typos

* taskqueue: fixed minor typos
  • Loading branch information
aurkenb committed Sep 28, 2020
1 parent 5539592 commit 2bbb383
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions datastore/save.go
Original file line number Diff line number Diff line change
Expand Up @@ -310,14 +310,14 @@ func propertiesToProto(defaultAppID string, key *Key, props []Property) (*pb.Ent
func isEmptyValue(v reflect.Value) bool {
switch v.Kind() {
case reflect.Array, reflect.Map, reflect.Slice, reflect.String:
// TODO(perfomance): Only reflect.String needed, other property types are not supported (copy/paste from json package)
// TODO(performance): Only reflect.String needed, other property types are not supported (copy/paste from json package)
return v.Len() == 0
case reflect.Bool:
return !v.Bool()
case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
return v.Int() == 0
case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr:
// TODO(perfomance): Uint* are unsupported property types - should be removed (copy/paste from json package)
// TODO(performance): Uint* are unsupported property types - should be removed (copy/paste from json package)
return v.Uint() == 0
case reflect.Float32, reflect.Float64:
return v.Float() == 0
Expand Down
2 changes: 1 addition & 1 deletion taskqueue/taskqueue.go
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ func Delete(c context.Context, task *Task, queueName string) error {
// DeleteMulti deletes multiple tasks from a named queue.
// If a given task could not be deleted, an appengine.MultiError is returned.
// Each task is deleted independently; one may fail to delete while the others
// are sucessfully deleted.
// are successfully deleted.
func DeleteMulti(c context.Context, tasks []*Task, queueName string) error {
taskNames := make([][]byte, len(tasks))
for i, t := range tasks {
Expand Down

0 comments on commit 2bbb383

Please sign in to comment.