We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79c8154 commit 5cb8967Copy full SHA for 5cb8967
modules/repository/init.go
@@ -65,14 +65,7 @@ func LoadRepoConfig() error {
65
return fmt.Errorf("failed to list custom %s files: %w", t, err)
66
}
67
for _, f := range customFiles {
68
- stat, err := os.Stat(filepath.Join(customPath, f))
69
- if err != nil {
70
- return fmt.Errorf("failed to stat custom %s file %q: %w", t, f, err)
71
- }
72
- // give end users a chance to hide builtin options if they put an empty file in their custom directory
73
- if stat.Size() == 0 {
74
- files = util.SliceRemoveAllFunc(files, func(s string) bool { return strings.EqualFold(s, f) })
75
- } else if !util.SliceContainsString(files, f, true) {
+ if !util.SliceContainsString(files, f) {
76
files = append(files, f)
77
78
0 commit comments