Skip to content

Commit ca37231

Browse files
authored
changed condition to avoid double comparison
1 parent 3ff6c3e commit ca37231

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Westsworld/TimeAgo/Language.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ private function isLessThan23Hours59Mins29Seconds(DateInterval $timeDifference)
242242
if (! ($timeDifference->y === 0 &&
243243
$timeDifference->m === 0 &&
244244
$timeDifference->d === 0 &&
245-
$timeDifference->h <= 23
245+
$timeDifference->h < 24
246246
)) {
247247
return false;
248248
};

0 commit comments

Comments
 (0)