Swap check for slightly better performance

release-0.1^2
Ruakij 2 years ago
parent 9d31008d29
commit d0840e6171

@ -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
}

Loading…
Cancel
Save