config_file.go: trim whitespace before processing
This commit is contained in:
parent
1b1c97f0f0
commit
ccfdba4f54
@ -16,7 +16,7 @@ func configFileLoad(filepath string) error {
|
|||||||
|
|
||||||
scanner := bufio.NewScanner(file)
|
scanner := bufio.NewScanner(file)
|
||||||
for scanner.Scan() {
|
for scanner.Scan() {
|
||||||
line := scanner.Text()
|
line := strings.TrimSpace(scanner.Text())
|
||||||
|
|
||||||
i := strings.Index(line, "=")
|
i := strings.Index(line, "=")
|
||||||
if i == -1 {
|
if i == -1 {
|
||||||
|
Loading…
Reference in New Issue
Block a user