Skip to content

Commit

Permalink
fix: remove unneeded (float)
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Nov 6, 2023
1 parent 619657f commit d57b51f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/Test/CIUnitTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ public function assertHeaderNotEmitted(string $header, bool $ignoreCase = false)
*/
public function assertCloseEnough(int $expected, $actual, string $message = '', int $tolerance = 1)
{
$difference = abs($expected - (int) floor((float) $actual));
$difference = abs($expected - (int) floor($actual));

$this->assertLessThanOrEqual($tolerance, $difference, $message);
}
Expand Down

0 comments on commit d57b51f

Please sign in to comment.