getModule: simplify log print statement (MR 19)
fixes a staticcheck linting warning
This commit is contained in:
2
main.go
2
main.go
@@ -743,7 +743,7 @@ func getModule(files misc.StringSet, modName string, modDir string) error {
|
||||
for _, dep := range deps {
|
||||
p := filepath.Join(modDir, dep)
|
||||
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
|
||||
}
|
||||
files[p] = false
|
||||
|
Reference in New Issue
Block a user