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 {
|
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
|
||||||
|
Reference in New Issue
Block a user