From 213241b895d1d9417cc1db72a5f8218da363d637 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20K=C3=A4ufl?= Date: Sun, 31 May 2015 23:51:12 +0200 Subject: [PATCH] Removed unnecessary if statement strings.Contains returns false if `line == ""` (and `substr != ""`). --- commands/command_track.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/commands/command_track.go b/commands/command_track.go index 216e51b6..afeb0967 100644 --- a/commands/command_track.go +++ b/commands/command_track.go @@ -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)