1
0
Fork 0
mirror of https://github.com/on4kjm/FLEcli.git synced 2025-01-31 06:51:02 +01:00

Add error checking bufio scanner (just in case)

This commit is contained in:
Jean-Marc MEESSEN 2020-06-25 21:35:08 +02:00
parent ab925ad2dd
commit 747e769761

View file

@ -72,6 +72,10 @@ func loadFile() {
txtlines = append(txtlines, scanner.Text())
}
if error := scanner.Err(); error != nil {
log.Fatal(error)
}
file.Close()
regexpLineComment, _ := regexp.Compile("^#")