Skip to content

Commit

Permalink
chore(psalm): Remove dead logic
Browse files Browse the repository at this point in the history
Signed-off-by: provokateurin <kate@provokateurin.de>
  • Loading branch information
provokateurin committed Sep 10, 2024
1 parent 74b31a3 commit 3c6d2c2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
6 changes: 1 addition & 5 deletions lib/Versions/ExpireManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
6 changes: 0 additions & 6 deletions tests/psalm-baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,4 @@
<code><![CDATA[IteratorDirectory]]></code>
</UndefinedClass>
</file>
<file src="lib/Versions/ExpireManager.php">
<TypeDoesNotContainType>
<code><![CDATA[self::MAX_VERSIONS_PER_INTERVAL[$interval]['intervalEndsAfter'] === -1]]></code>
<code><![CDATA[self::MAX_VERSIONS_PER_INTERVAL[$interval]['intervalEndsAfter'] === -1]]></code>
</TypeDoesNotContainType>
</file>
</files>

0 comments on commit 3c6d2c2

Please sign in to comment.