getModule: simplify log print statement (MR 19)

fixes a staticcheck linting warning
This commit is contained in:
Clayton Craft
2022-03-30 22:37:06 -07:00
parent 9843f8a9c3
commit 6e2b4af336

View File

@@ -743,7 +743,7 @@ func getModule(files misc.StringSet, modName string, modDir string) 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) {
log.Print(fmt.Sprintf("Tried to include a module that doesn't exist in the modules directory (%s): %s", modDir, p)) log.Printf("Tried to include a module that doesn't exist in the modules directory (%s): %s", modDir, p)
return err return err
} }
files[p] = false files[p] = false