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
|
||||
for scanner.Scan() {
|
||||
text := scanner.Text()
|
||||
if(strings.HasPrefix(text, "#") || text == ""){
|
||||
if(text == "" || strings.HasPrefix(text, "#")){
|
||||
continue
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user