Skip to content

Commit

Permalink
Get value from array directly
Browse files Browse the repository at this point in the history
The patchset simplifies the code implementation to iterate over an
array.

Change-Id: I2f29335955e2ee1a4c0aabf2c744ca9b223a1a87
Signed-off-by: Baohua Yang <[email protected]>
Signed-off-by: Baohua Yang <[email protected]>
  • Loading branch information
yeasy authored and denyeart committed Dec 6, 2023
1 parent 896f113 commit 6264678
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ func (v *rangeQueryResultsValidator) validate() (bool, error) {
if len(rqResults) == 0 {
return result == nil, nil
}
for i := 0; i < len(rqResults); i++ {
kvRead := rqResults[i]
for _, kvRead := range rqResults {
logger.Debugf("comparing kvRead=[%#v] to queryResponse=[%#v]", kvRead, result)
if result == nil {
logger.Debugf("Query response nil. Key [%s] got deleted", kvRead.Key)
Expand Down

0 comments on commit 6264678

Please sign in to comment.