Skip to content

Commit da6acd8

Browse files
committed
update filePath handling to use String() method in listFiles calls
1 parent 3da4edb commit da6acd8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/config/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ func cleanUpFilters(gCfg *plugins.Config, filters []Filter) error {
458458
os.Exit(1)
459459
}
460460

461-
files, e := listFiles(string(filePath))
461+
files, e := listFiles(filePath.String())
462462
if e != nil {
463463
os.Exit(1)
464464
}
@@ -491,7 +491,7 @@ func cleanUpRules(gCfg *plugins.Config, rules []Rule) error {
491491
os.Exit(1)
492492
}
493493

494-
files, err := listFiles(string(filePath))
494+
files, err := listFiles(filePath.String())
495495
if err != nil {
496496
_ = catcher.Error("failed to list files", err, map[string]any{})
497497
os.Exit(1)

0 commit comments

Comments
 (0)