From bb12e3d0291f304b1895f48e4ec0ac34f7a9b1c0 Mon Sep 17 00:00:00 2001 From: Arik Jones Date: Sat, 14 Sep 2024 21:25:50 -0500 Subject: [PATCH] fix: Something in root --- cmd/root.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cmd/root.go b/cmd/root.go index 14db5b7..fc48bd2 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -9,7 +9,6 @@ import ( "github.com/spf13/cobra" "github.com/tnypxl/rollup/internal/config" - "github.com/tnypxl/rollup/internal/scraper" ) var ( @@ -173,12 +172,12 @@ func runRollup() error { return nil } relPath, _ := filepath.Rel(absPath, path) - + // Check if the file should be ignored if isIgnored(relPath, ignoreList) { return nil } - + ext := filepath.Ext(path) for _, t := range types { if ext == "."+t { @@ -203,7 +202,6 @@ func runRollup() error { } return nil }) - if err != nil { return fmt.Errorf("error walking through directory: %v", err) }