main: fix linting issue (staticcheck ST1005) (MR 22)
This commit is contained in:
2
main.go
2
main.go
@@ -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)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user