diff --git a/aws/object/object.go b/aws/object/object.go index f3b325a4..7018c8d7 100644 --- a/aws/object/object.go +++ b/aws/object/object.go @@ -96,7 +96,7 @@ func (cli *client) WalkPrefix(prefix string, f WalkFunc) liberr.Error { } for _, o := range out.Contents { - if o.Key == nil || len(*o.Key) < 3 { + if o.Key == nil || len(*o.Key) < 1 { continue } diff --git a/aws/object/version.go b/aws/object/version.go index daa417e4..a15d1544 100644 --- a/aws/object/version.go +++ b/aws/object/version.go @@ -94,7 +94,7 @@ func (cli *client) VersionWalkPrefix(prefix string, fv VersionWalkFunc, fd DelMa } for _, o := range out.Versions { - if o.Key == nil || len(*o.Key) < 3 { + if o.Key == nil || len(*o.Key) < 1 { continue } else if o.VersionId == nil || len(*o.VersionId) < 1 { continue @@ -106,7 +106,7 @@ func (cli *client) VersionWalkPrefix(prefix string, fv VersionWalkFunc, fd DelMa } for _, o := range out.DeleteMarkers { - if o.Key == nil || len(*o.Key) < 3 { + if o.Key == nil || len(*o.Key) < 1 { continue } else if o.VersionId == nil || len(*o.VersionId) < 1 { continue diff --git a/go.mod b/go.mod index b4fbe70b..6d1ebb57 100644 --- a/go.mod +++ b/go.mod @@ -63,7 +63,6 @@ require ( github.com/Azure/go-ntlmssp v0.0.0-20220621081337-cb9428e4ac1e // indirect github.com/ClickHouse/ch-go v0.48.0 // indirect github.com/ClickHouse/clickhouse-go/v2 v2.3.0 // indirect - github.com/DataDog/zstd v1.5.2 // indirect github.com/Masterminds/goutils v1.1.1 // indirect github.com/Masterminds/semver v1.5.0 // indirect github.com/Masterminds/sprig v2.22.0+incompatible // indirect @@ -96,9 +95,9 @@ require ( github.com/cockroachdb/pebble v0.0.0-20210331181633-27fc006b8bfb // indirect github.com/cockroachdb/redact v1.0.6 // indirect github.com/cockroachdb/sentry-go v0.6.1-cockroachdb.2 // indirect - github.com/getsentry/sentry-go v0.14.0 // indirect github.com/gin-contrib/sse v0.1.0 // indirect github.com/go-asn1-ber/asn1-ber v1.5.4 // indirect + github.com/go-errors/errors v1.4.2 // indirect github.com/go-faster/city v1.0.1 // indirect github.com/go-faster/errors v0.6.1 // indirect github.com/go-ole/go-ole v1.2.6 // indirect