config_file.go: skip newlines

This commit is contained in:
Adhityaa 2018-06-21 20:59:29 +05:30
parent ccfdba4f54
commit 6f06c4ed65

View File

@ -17,6 +17,9 @@ func configFileLoad(filepath string) error {
scanner := bufio.NewScanner(file)
for scanner.Scan() {
line := strings.TrimSpace(scanner.Text())
if line == "" {
continue
}
i := strings.Index(line, "=")
if i == -1 {