Skip to content
Snippets Groups Projects
Unverified Commit d6b212f4 authored by Garrit Franke's avatar Garrit Franke Committed by GitHub
Browse files

Use inline variable in TimeAndDateExtensions.kt (#726)

parent f1e432e1
No related branches found
No related tags found
No related merge requests found
......@@ -61,7 +61,6 @@ object TimeAndDateExtensions {
*/
fun calculateDays(firstDate: Long, secondDate: Long): Long {
val millionSeconds = secondDate - firstDate
val days = TimeUnit.MILLISECONDS.toDays(millionSeconds)
return days
return TimeUnit.MILLISECONDS.toDays(millionSeconds)
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment