Skip to content

Commit f8a0ec8

Browse files
committedOct 21, 2018
InserationSort: fix lint
1 parent 43090be commit f8a0ec8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ 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+
[array[currentIndex - 1], array[currentIndex]] = [
25+
array[currentIndex], array[currentIndex - 1]];
2526

2627
// Shift current index left.
2728
currentIndex -= 1;

0 commit comments

Comments
 (0)
Please sign in to comment.