Skip to content

Commit eb36e2d

Browse files
CarlosZoftgithub-actions
and
github-actions
authored
merge: Format codebase with standard.js (TheAlgorithms#989)
* Auto-update DIRECTORY.md * fix: some redundancy according to standard javascript library Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
1 parent 298ab33 commit eb36e2d

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

DIRECTORY.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
* [CycleDetection](https://github.com/TheAlgorithms/Javascript/blob/master/Data-Structures/Linked-List/CycleDetection.js)
7878
* [DoublyLinkedList](https://github.com/TheAlgorithms/Javascript/blob/master/Data-Structures/Linked-List/DoublyLinkedList.js)
7979
* [RotateListRight](https://github.com/TheAlgorithms/Javascript/blob/master/Data-Structures/Linked-List/RotateListRight.js)
80-
* [SingleCircularLinkedList](https://github.com/TheAlgorithms/Javascript/blob/master/Data-Structures/Linked-List/SingleCircularLinkedList.js.js)
80+
* [SinglyCircularLinkedList](https://github.com/TheAlgorithms/Javascript/blob/master/Data-Structures/Linked-List/SinglyCircularLinkedList.js)
8181
* [SinglyLinkedList](https://github.com/TheAlgorithms/Javascript/blob/master/Data-Structures/Linked-List/SinglyLinkedList.js)
8282
* Queue
8383
* [CircularQueue](https://github.com/TheAlgorithms/Javascript/blob/master/Data-Structures/Queue/CircularQueue.js)

Data-Structures/Tree/Trie.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function Trie () {
1818
Trie.findAllWords = function (root, word, output) {
1919
if (root === null) return
2020
if (root.count > 0) {
21-
if (typeof output === 'object') { output.push({ word: word, count: root.count }) }
21+
if (typeof output === 'object') { output.push({ word, count: root.count }) }
2222
}
2323
let key
2424
for (key in root.children) {

Maths/test/EulerMethod.manual-test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function plotLine (label, points, width, height) {
1818
type: 'scatter',
1919
data: {
2020
datasets: [{
21-
label: label,
21+
label,
2222
data: points,
2323
showLine: true,
2424
fill: false,

Sorts/TopologicalSort.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export function TopologicalSorter () {
4242
}
4343

4444
finishingTimeList.push({
45-
node: node,
45+
node,
4646
finishTime: ++finishTimeCount
4747
})
4848
}

0 commit comments

Comments
 (0)