Explorar el Código

prevent default warn message when max-archive-depth not set

Zach hace 8 meses
padre
commit
0357c3cbf6
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      sources/file.go

+ 1 - 1
sources/file.go

@@ -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
 	// and fall back on treating it like a normal file and let fileFragments
 	// decide what to do with it.
 	// decide what to do with it.
 	if err == nil && format != nil {
 	if err == nil && format != nil {
-		if s.archiveDepth+1 > s.MaxArchiveDepth {
+		if (s.archiveDepth+1 > s.MaxArchiveDepth) && s.MaxArchiveDepth != 0 {
 			logging.Warn().Str(
 			logging.Warn().Str(
 				"path", s.FullPath(),
 				"path", s.FullPath(),
 			).Int(
 			).Int(