Minor code cleanup

This commit is contained in:
Juha Heinanen
2022-06-12 16:03:52 +03:00
parent 74c4b2b1a7
commit fab5343de9
2 changed files with 1 additions and 2 deletions
@@ -33,7 +33,7 @@ class NewCallHistory(val aor: String, val peerUri: String, val direction: String
}
private fun aorHistorySize(aor: String): Int {
return BaresipService.callHistory.filter { it.aor == aor }.count()
return BaresipService.callHistory.count { it.aor == aor }
}
fun aorLatestHistory(aor: String): NewCallHistory? {