Skip to content

Commit

Permalink
Merge pull request #126 from anamarijapapic/fix/quicksort-empty-input…
Browse files Browse the repository at this point in the history
…-validation

[Sorting: QuickSort] Fix empty input validation.
  • Loading branch information
darwinz authored Oct 7, 2023
2 parents a65714c + 6eea66c commit 9f7292d
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 9f7292d

Please sign in to comment.