Removed unnecessary if statement
strings.Contains returns false if `line == ""` (and `substr != ""`).
This commit is contained in:
parent
87622df4d0
commit
213241b895
@ -88,10 +88,6 @@ func findPaths() []mediaPath {
|
|||||||
scanner := bufio.NewScanner(attributes)
|
scanner := bufio.NewScanner(attributes)
|
||||||
for scanner.Scan() {
|
for scanner.Scan() {
|
||||||
line := scanner.Text()
|
line := scanner.Text()
|
||||||
if line == "" {
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
|
|
||||||
if strings.Contains(line, "filter=lfs") {
|
if strings.Contains(line, "filter=lfs") {
|
||||||
fields := strings.Fields(line)
|
fields := strings.Fields(line)
|
||||||
relPath, _ := filepath.Rel(wd, path)
|
relPath, _ := filepath.Rel(wd, path)
|
||||||
|
Loading…
Reference in New Issue
Block a user