mirror of
https://github.com/trekhleb/javascript-algorithms.git
synced 2026-03-13 08:51:02 +08:00
Fix ESLint issues.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user