Skip to content

Commit f42433e

Browse files
committed
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

Lines changed: 7 additions & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy