Added Semicolon to Avoid Auto Semicolon Insertion

This fixes a [recommendation on lgtm](9fe2ca0492/files/Sorts/bucketSort.js)
This commit is contained in:
PatOnTheBack
2019-06-26 21:23:46 -04:00
committed by GitHub
parent 2c1cd5595a
commit d582ccfc9f

View File

@ -42,7 +42,7 @@ function bucketSort(list, size){
// bucket fill
for(let iBucket = 0; iBucket < list.length; iBucket++){
let key = Math.floor((list[iBucket] - min) / size);
buckets[key].push(list[iBucket])
buckets[key].push(list[iBucket]);
}
let sorted = [];
// now sort every bucket and merge it to the sorted list