Removed unnecessary if statement

strings.Contains returns false if `line == ""` (and `substr != ""`).
This commit is contained in:
Michael Käufl 2015-05-31 23:51:12 +02:00
parent 87622df4d0
commit 213241b895

@ -88,10 +88,6 @@ func findPaths() []mediaPath {
scanner := bufio.NewScanner(attributes)
for scanner.Scan() {
line := scanner.Text()
if line == "" {
continue
}
if strings.Contains(line, "filter=lfs") {
fields := strings.Fields(line)
relPath, _ := filepath.Rel(wd, path)