diff --git a/src/algorithms/sorting/cocktail-shaker-sort/CocktailShakerSort.js b/src/algorithms/sorting/cocktail-shaker-sort/CocktailShakerSort.js index f5755a2f..701d75a4 100644 --- a/src/algorithms/sorting/cocktail-shaker-sort/CocktailShakerSort.js +++ b/src/algorithms/sorting/cocktail-shaker-sort/CocktailShakerSort.js @@ -48,11 +48,10 @@ export default class CocktailShakerSort extends Sort { swapped = true; } } - // Move the start point forward by one, // because the item at the start point is already in its correct position. start += 1; - + } return array; }