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:
parent
ab925ad2dd
commit
747e769761
1 changed files with 4 additions and 0 deletions
|
@ -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("^#")
|
||||
|
|
Loading…
Reference in a new issue