1
mirror of https://gitlab.com/commento/commento.git synced 2026-06-17 09:55:27 -04:00

config_file.go: skip newlines

This commit is contained in:
Adhityaa
2018-06-21 20:59:29 +05:30
parent ccfdba4f54
commit 6f06c4ed65
+3
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 {