fixed linting issues

This commit is contained in:
Omid Rajabi 2022-02-01 09:39:00 -05:00
parent 21d54e4774
commit f19e6b7a3a

View File

@ -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);
} }
} }