Skip to content

Commit

Permalink
lint rangeValCopy (minor)
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Aizman <[email protected]>
  • Loading branch information
alex-aizman committed Feb 11, 2025
1 parent c958d4a commit ddd5a99
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ais/backend/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,8 @@ func (*s3bp) ListObjects(bck *meta.Bck, msg *apc.LsoMsg, lst *cmn.LsoRes) (ecode
if err != nil {
return awsErrorToAISError(err, cloudBck, "")
}
for _, vers := range verResp.Versions {
for i := range verResp.Versions {
vers := &verResp.Versions[i]
if latest := *(vers.IsLatest); !latest {
continue
}
Expand Down

0 comments on commit ddd5a99

Please sign in to comment.