mirror of
https://github.com/tnypxl/rollup.git
synced 2025-12-13 06:23:18 +00:00
fix: Something in root
This commit is contained in:
@@ -9,7 +9,6 @@ import (
|
|||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"github.com/tnypxl/rollup/internal/config"
|
"github.com/tnypxl/rollup/internal/config"
|
||||||
"github.com/tnypxl/rollup/internal/scraper"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
@@ -173,12 +172,12 @@ func runRollup() error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
relPath, _ := filepath.Rel(absPath, path)
|
relPath, _ := filepath.Rel(absPath, path)
|
||||||
|
|
||||||
// Check if the file should be ignored
|
// Check if the file should be ignored
|
||||||
if isIgnored(relPath, ignoreList) {
|
if isIgnored(relPath, ignoreList) {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
ext := filepath.Ext(path)
|
ext := filepath.Ext(path)
|
||||||
for _, t := range types {
|
for _, t := range types {
|
||||||
if ext == "."+t {
|
if ext == "."+t {
|
||||||
@@ -203,7 +202,6 @@ func runRollup() error {
|
|||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
})
|
})
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("error walking through directory: %v", err)
|
return fmt.Errorf("error walking through directory: %v", err)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user