mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 21:24:21 +01:00
prevent default warn message when max-archive-depth not set
This commit is contained in:
1 parent
782f310478
commit
0357c3cbf6
1 file changed
+1
-1
+1
-1
@@ -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(
|
||||||
|
|||||||
Reference in new issue
Block a user