Skip to content

Commit 688b350

Browse files
committed
Remove always true condition reported by scrutinizer.
1 parent f5f2c6e commit 688b350

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/AbstractQueue.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,8 +297,7 @@ private function calculateSleepTime(int $pollDurationInMillis) : int
297297
{
298298
$pollDurationInMillis = max($pollDurationInMillis, 0);
299299
$sleepTime = $pollDurationInMillis * 1000;
300-
//ints overflow to floats and already checked $pollDurationInMillis was positive
301-
return is_int($sleepTime) ? $sleepTime : PHP_INT_MAX;
300+
return $sleepTime;
302301
}
303302

304303
private function calculateEarliestGet(int $runningResetDuration) : UTCDateTime

0 commit comments

Comments
 (0)