From 6f06c4ed65c18fec1f1753bc103e0ff5f4562b08 Mon Sep 17 00:00:00 2001 From: Adhityaa Date: Thu, 21 Jun 2018 20:59:29 +0530 Subject: [PATCH] config_file.go: skip newlines --- api/config_file.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/config_file.go b/api/config_file.go index d5c6ea9..1600f78 100644 --- a/api/config_file.go +++ b/api/config_file.go @@ -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 {