mirror of
https://github.com/distribution/distribution.git
synced 2025-09-03 07:54:41 +00:00
storagedriver/s3: Simplified conditional in Walk impl
This commit is contained in:
@@ -1210,12 +1210,10 @@ func (d *driver) doWalk(parentCtx context.Context, objectCount *int64, path, pre
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
if walkDirectories {
|
if walkInfo.IsDir() && walkDirectories {
|
||||||
if walkInfo.IsDir() {
|
if err := d.doWalk(ctx, objectCount, *walkInfo.prefix, prefix, walkDirectories, f); err != nil {
|
||||||
if err := d.doWalk(ctx, objectCount, *walkInfo.prefix, prefix, walkDirectories, f); err != nil {
|
retError = err
|
||||||
retError = err
|
return false
|
||||||
return false
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user