Fix ESLint issues.

This commit is contained in:
Oleksii Trekhleb 2020-07-26 13:23:36 +02:00
parent 2ffb7b7abf
commit f42433e51e

View File

@ -21,7 +21,13 @@ export default class InsertionSort extends Sort {
this.callbacks.visitingCallback(array[currentIndex - 1]);
// Swap the elements.
[array[currentIndex - 1], array[currentIndex]] = [array[currentIndex], array[currentIndex - 1]];
[
array[currentIndex - 1],
array[currentIndex],
] = [
array[currentIndex],
array[currentIndex - 1],
];
// Shift current index left.
currentIndex -= 1;