diff --git a/config/ini.go b/config/ini.go index 53bd992d..9371fe61 100644 --- a/config/ini.go +++ b/config/ini.go @@ -86,11 +86,10 @@ func (ini *IniConfig) parseFile(name string) (*IniConfigContainer, error) { if _, ok := err.(*os.PathError); ok { return nil, err } + line = bytes.TrimSpace(line) if bytes.Equal(line, bEmpty) { continue } - line = bytes.TrimSpace(line) - var bComment []byte switch { case bytes.HasPrefix(line, bNumComment):