main: fix linting issue (staticcheck ST1005) (MR 22)

This commit is contained in:
Clayton Craft
2022-09-11 13:56:54 -07:00
parent e71cab485d
commit 7eed20e35f

View File

@@ -810,7 +810,7 @@ func getModule(modName string, modDir string) (files []string, err error) {
for _, dep := range deps { for _, dep := range deps {
p := filepath.Join(modDir, dep) p := filepath.Join(modDir, dep)
if !exists(p) { if !exists(p) {
return nil, fmt.Errorf("Tried to include a module that doesn't exist in the modules directory (%s): %s", modDir, p) return nil, fmt.Errorf("tried to include a module that doesn't exist in the modules directory (%s): %s", modDir, p)
} }
files = append(files, p) files = append(files, p)
} }