diff --git a/lib/iproute2mapping/mapping.go b/lib/iproute2mapping/mapping.go index 5b2e6c0..7cb0686 100644 --- a/lib/iproute2mapping/mapping.go +++ b/lib/iproute2mapping/mapping.go @@ -55,7 +55,7 @@ func readFromFile(filePath string) (mapByName map[string]int, mapById map[int]st // Go through file line-by-line for scanner.Scan() { text := scanner.Text() - if(strings.HasPrefix(text, "#") || text == ""){ + if(text == "" || strings.HasPrefix(text, "#")){ continue }