diff --git a/lib/Versions/ExpireManager.php b/lib/Versions/ExpireManager.php
index 52149fdcf..7747454e9 100644
--- a/lib/Versions/ExpireManager.php
+++ b/lib/Versions/ExpireManager.php
@@ -57,11 +57,7 @@ protected function getAutoExpireList(int $time, array $versions): array {
$interval = 1;
$step = self::MAX_VERSIONS_PER_INTERVAL[$interval]['step'];
- if (self::MAX_VERSIONS_PER_INTERVAL[$interval]['intervalEndsAfter'] === -1) {
- $nextInterval = -1;
- } else {
- $nextInterval = $time - self::MAX_VERSIONS_PER_INTERVAL[$interval]['intervalEndsAfter'];
- }
+ $nextInterval = $time - self::MAX_VERSIONS_PER_INTERVAL[$interval]['intervalEndsAfter'];
/** @var IVersion $firstVersion */
$firstVersion = array_shift($versions);
diff --git a/tests/psalm-baseline.xml b/tests/psalm-baseline.xml
index 5ba587881..96f296ab5 100644
--- a/tests/psalm-baseline.xml
+++ b/tests/psalm-baseline.xml
@@ -5,10 +5,4 @@
-
-
-
-
-
-