Remove redundant fun calls in ipv4ToCountry

pull/1684/head
bemusementpark 6 months ago
parent 3bc0ce539a
commit 45f460650c

@ -45,8 +45,8 @@ class IP2Country private constructor(private val context: Context) {
CSVReader(FileReader(file.absoluteFile)).use { csv ->
csv.skip(1)
csv.asSequence().associateTo(TreeMap()) { cols ->
ipv4Int(cols[0]).toInt() to cols[1].toIntOrNull()
csv.associateTo(TreeMap()) { cols ->
ipv4Int(cols[0]) to cols[1].toIntOrNull()
}
}
}

Loading…
Cancel
Save