Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f42433e

Browse files
committedJul 26, 2020
Fix ESLint issues.
1 parent 2ffb7b7 commit f42433e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed
 

‎src/algorithms/sorting/insertion-sort/InsertionSort.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,13 @@ export default class InsertionSort extends Sort {
2121
this.callbacks.visitingCallback(array[currentIndex - 1]);
2222

2323
// Swap the elements.
24-
[array[currentIndex - 1], array[currentIndex]] = [array[currentIndex], array[currentIndex - 1]];
24+
[
25+
array[currentIndex - 1],
26+
array[currentIndex],
27+
] = [
28+
array[currentIndex],
29+
array[currentIndex - 1],
30+
];
2531

2632
// Shift current index left.
2733
currentIndex -= 1;

0 commit comments

Comments
 (0)
Please sign in to comment.