Skip to content

Commit

Permalink
fix empty input validation.
Browse files Browse the repository at this point in the history
  • Loading branch information
anamarijapapic committed Oct 6, 2023
1 parent 618fe7f commit 6eea66c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sorting/QuickSort.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
function quickSort(array $input)
{
// Return nothing if input is empty
if (!empty($input)) {
if (empty($input)) {
return [];
}

Expand Down

0 comments on commit 6eea66c

Please sign in to comment.