Skip to content

Commit

Permalink
BatchGet: break early given nil Keyed
Browse files Browse the repository at this point in the history
  • Loading branch information
guregu committed Mar 21, 2020
1 parent f99a88a commit fa64afb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion batchget.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func (bg *BatchGet) add(keys []Keyed) {
for _, key := range keys {
if key == nil {
bg.setError(errors.New("dynamo: batch: the Keyed interface must not be nil"))
continue
break
}
get := bg.batch.table.Get(bg.batch.hashKey, key.HashKey())
if rk := key.RangeKey(); bg.batch.rangeKey != "" && rk != nil {
Expand Down

0 comments on commit fa64afb

Please sign in to comment.