Swap check for slightly better performance
This commit is contained in:
@@ -55,7 +55,7 @@ func readFromFile(filePath string) (mapByName map[string]int, mapById map[int]st
|
|||||||
// Go through file line-by-line
|
// Go through file line-by-line
|
||||||
for scanner.Scan() {
|
for scanner.Scan() {
|
||||||
text := scanner.Text()
|
text := scanner.Text()
|
||||||
if(strings.HasPrefix(text, "#") || text == ""){
|
if(text == "" || strings.HasPrefix(text, "#")){
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user