From ccfdba4f5401a422df75971ffc9db150c87dfef1 Mon Sep 17 00:00:00 2001 From: Adhityaa Date: Thu, 21 Jun 2018 20:58:26 +0530 Subject: [PATCH] config_file.go: trim whitespace before processing --- api/config_file.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/config_file.go b/api/config_file.go index 5e4c013..d5c6ea9 100644 --- a/api/config_file.go +++ b/api/config_file.go @@ -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 {