mirror of
https://github.com/miniflux/v2.git
synced 2024-09-28 05:11:51 +02:00
Remove a superfluous condition
No need to check if the length of `line` is positive since we're checking afterwards that it contains the `=` sign.
This commit is contained in:
parent
543a690bfd
commit
f4f8342245
@ -56,7 +56,7 @@ func (p *Parser) parseFileContent(r io.Reader) (lines []string) {
|
||||
scanner := bufio.NewScanner(r)
|
||||
for scanner.Scan() {
|
||||
line := strings.TrimSpace(scanner.Text())
|
||||
if len(line) > 0 && !strings.HasPrefix(line, "#") && strings.Index(line, "=") > 0 {
|
||||
if !strings.HasPrefix(line, "#") && strings.Index(line, "=") > 0 {
|
||||
lines = append(lines, line)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user