Browse Source

Remove the cast to int

Ben Dwyer 4 years ago
parent
commit
6311cc7ddb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      varia/inc/color-utils.php

+ 1 - 1
varia/inc/color-utils.php

@@ -28,7 +28,7 @@ if ( ! function_exists( 'rgb_to_hsvl' ) ) {
 		$min_rgb           = min( $r, $g, $b );
 		$chroma            = $max_rgb - $min_rgb;
 		$v                 = 100 * $max_rgb;
-		if ( 0 === (int) $chroma ) {
+		if ( 0 === $chroma ) {
 			return array( 0, 0, $v, $l );
 		}
 		$s = 100 * ( $chroma / $max_rgb );