mirror of
https://github.com/versity/versitygw.git
synced 2026-01-07 04:06:23 +00:00
Merge pull request #251 from versity/fix/walk-last-elem
Walk function last object check panic fix
This commit is contained in:
@@ -64,9 +64,7 @@ func Walk(fileSystem fs.FS, prefix, delimiter, marker string, max int32, getObj
|
||||
}
|
||||
|
||||
if pastMax {
|
||||
if max < 1 {
|
||||
truncated = true
|
||||
} else {
|
||||
if len(objects) != 0 {
|
||||
newMarker = *objects[len(objects)-1].Key
|
||||
truncated = true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user