prevent default warn message when max-archive-depth not set (#1881)

This commit is contained in:
Zachary Rice authored and GitHub committed 2025-06-01 12:10:45 -05:00
1 parent 782f310478
commit c5683ca6a3
1 file changed
+1 -1
+1 -1
View File
@@ -55,7 +55,7 @@ func (s *File) Fragments(ctx context.Context, yield FragmentsFunc) error {
// and fall back on treating it like a normal file and let fileFragments
// decide what to do with it.
if err == nil && format != nil {
if s.archiveDepth+1 > s.MaxArchiveDepth {
if (s.archiveDepth+1 > s.MaxArchiveDepth) && s.MaxArchiveDepth != 0 {
logging.Warn().Str(
"path", s.FullPath(),
).Int(