fixed linting

This commit is contained in:
Christian Goll
2022-02-16 12:24:08 +01:00
committed by jcsiadal
parent ac1718f1c0
commit 27b28a2a1a
2 changed files with 6 additions and 3 deletions

View File

@@ -41,10 +41,10 @@ func templateFileBlock(inc string, abortStr string) (string, error) {
}
wwlog.Printf(wwlog.DEBUG, "Including file block into template: %s\n", inc)
readFile, err := os.Open(inc)
defer readFile.Close()
if err != nil {
return "", err
}
defer readFile.Close()
var cont string
fileScanner := bufio.NewScanner(readFile)
fileScanner.Split(bufio.ScanLines)