Swap check for slightly better performance
This commit is contained in:
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
|
// 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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user