Skip to content

Commit

Permalink
clientv3: formatted code govet
Browse files Browse the repository at this point in the history
  • Loading branch information
visheshnp committed Aug 2, 2017
1 parent c863d2e commit d65cb87
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions clientv3/leasing/kv.go
Original file line number Diff line number Diff line change
Expand Up @@ -294,12 +294,10 @@ func (lkv *leasingKV) deleteRangeRPC(ctx context.Context, maxLeaseRev int64, key
).Commit()
if err != nil {
panic("delete all keys in range from cache")
return nil, err
}
if !resp.Succeeded {
return nil, nil
}

for _, kv := range resp.Responses[0].GetResponseRange().Kvs {
lkv.leases.Delete(string(kv.Key), resp.Header)
}
Expand Down

0 comments on commit d65cb87

Please sign in to comment.