Skip to content

Commit 1bfc67c

Browse files
committed
Refactor code-style
1 parent aed752b commit 1bfc67c

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

index.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22

33
module.exports = toString
44

5-
/* Get the text content of a node. If the node itself
6-
* does not expose plain-text fields, `toString` will
7-
* recursivly try its children. */
5+
// Get the text content of a node. If the node itself does not expose
6+
// plain-text fields, `toString` will recursivly try its children.
87
function toString(node) {
98
return (
109
valueOf(node) ||
@@ -13,8 +12,7 @@ function toString(node) {
1312
)
1413
}
1514

16-
/* Get the value of `node`. Checks, `value`,
17-
* `alt`, and `title`, in that order. */
15+
// Get the value of `node`. Checks, `value`, `alt`, and `title`, in that order.
1816
function valueOf(node) {
1917
return (
2018
(node && node.value ? node.value : node.alt ? node.alt : node.title) || ''

0 commit comments

Comments
 (0)