From d6b212f457d9cf60ec9826966e5c20a30e196292 Mon Sep 17 00:00:00 2001
From: Garrit Franke <32395585+garritfra@users.noreply.github.com>
Date: Tue, 23 Jun 2020 15:16:57 +0200
Subject: [PATCH] Use inline variable in TimeAndDateExtensions.kt  (#726)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Co-authored-by: Jakob Möller <jakob.moeller@sap.com>
---
 .../java/de/rki/coronawarnapp/util/TimeAndDateExtensions.kt    | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/Corona-Warn-App/src/main/java/de/rki/coronawarnapp/util/TimeAndDateExtensions.kt b/Corona-Warn-App/src/main/java/de/rki/coronawarnapp/util/TimeAndDateExtensions.kt
index 6c5270918..2970fbb25 100644
--- a/Corona-Warn-App/src/main/java/de/rki/coronawarnapp/util/TimeAndDateExtensions.kt
+++ b/Corona-Warn-App/src/main/java/de/rki/coronawarnapp/util/TimeAndDateExtensions.kt
@@ -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)
     }
 }
-- 
GitLab