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

View File

@ -551,7 +551,6 @@ class BaresipService: Service() {
return
}
val aor = ua.account.aor
Log.d(TAG, "got uaEvent $event/$aor/$callp")

View File

@ -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? {