mirror of
https://github.moeyy.xyz/https://github.com/trekhleb/javascript-algorithms.git
synced 2024-11-10 11:09:43 +08:00
fixed linting issues
This commit is contained in:
parent
21d54e4774
commit
f19e6b7a3a
@ -2,8 +2,6 @@ import LinkedListNode from './LinkedListNode';
|
|||||||
import Comparator from '../../utils/comparator/Comparator';
|
import Comparator from '../../utils/comparator/Comparator';
|
||||||
|
|
||||||
export default class LinkedList {
|
export default class LinkedList {
|
||||||
head: any;
|
|
||||||
tail: any;
|
|
||||||
/**
|
/**
|
||||||
* @param {Function} [comparatorFunction]
|
* @param {Function} [comparatorFunction]
|
||||||
*/
|
*/
|
||||||
@ -320,10 +318,8 @@ export default class LinkedList {
|
|||||||
node2Prev.setNextNode(node1);
|
node2Prev.setNextNode(node1);
|
||||||
}
|
}
|
||||||
|
|
||||||
let temp = node1.next;
|
const temp = node1.next;
|
||||||
node1.setNextNode(node2.next);
|
node1.setNextNode(node2.next);
|
||||||
node2.setNextNode(temp);
|
node2.setNextNode(temp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user