config_file.go: trim whitespace before processing

This commit is contained in:
Adhityaa 2018-06-21 20:58:26 +05:30
parent 1b1c97f0f0
commit ccfdba4f54

View File

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