From 9fb182217fc5b57e760d7d0d0e6822ee63456066 Mon Sep 17 00:00:00 2001 From: Miccah Castorina Date: Thu, 18 Jan 2024 19:44:45 -0800 Subject: [PATCH] Address comments --- pkg/sources/filesystem/filesystem.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pkg/sources/filesystem/filesystem.go b/pkg/sources/filesystem/filesystem.go index 01310f89bf6b..bee550a1d0c3 100644 --- a/pkg/sources/filesystem/filesystem.go +++ b/pkg/sources/filesystem/filesystem.go @@ -237,10 +237,7 @@ func (s *Source) Enumerate(ctx context.Context, reporter sources.UnitReporter) e } fullPath := filepath.Join(path, relativePath) item := sources.CommonSourceUnit{ID: fullPath} - if err := reporter.UnitOk(ctx, item); err != nil { - return err - } - return nil + return reporter.UnitOk(ctx, item) }) } item := sources.CommonSourceUnit{ID: path}