From 011856cbfa3a0f709d2fe1e4139ae53ce6663bfe Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Sat, 23 Apr 2022 09:15:01 +0200 Subject: [PATCH] Removed redundant var --- module/CLI/src/Util/GeolocationDbUpdater.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/module/CLI/src/Util/GeolocationDbUpdater.php b/module/CLI/src/Util/GeolocationDbUpdater.php index 67e9d485..22a3bac5 100644 --- a/module/CLI/src/Util/GeolocationDbUpdater.php +++ b/module/CLI/src/Util/GeolocationDbUpdater.php @@ -66,9 +66,8 @@ class GeolocationDbUpdater implements GeolocationDbUpdaterInterface { $buildTimestamp = $this->resolveBuildTimestamp($meta); $buildDate = Chronos::createFromTimestamp($buildTimestamp); - $now = Chronos::now(); - return $now->gt($buildDate->addDays(35)); + return Chronos::now()->gt($buildDate->addDays(35)); } private function resolveBuildTimestamp(Metadata $meta): int