Skip to content

Commit 5398bfc

Browse files
minor refactor on threshold validator
1 parent aeaea8b commit 5398bfc

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

References.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -235,10 +235,8 @@ public function threshold(string $threshold): float
235235
if (is_numeric($percent_num)) {
236236
return $threshold;
237237
}
238-
} else {
239-
if (is_numeric($threshold)) {
240-
return $threshold;
241-
}
238+
} else if (is_numeric($threshold)) {
239+
return $threshold;
242240
}
243241

244242
throw new \InvalidArgumentException(\sprintf(

0 commit comments

Comments
 (0)