Skip to content
This repository was archived by the owner on Aug 9, 2023. It is now read-only.

Commit 4830918

Browse files
committed
Refactor comments
1 parent a0199be commit 4830918

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,7 @@ function wrapper(h, node, options) {
6767
})
6868
}
6969

70-
// Transform a HAST node through a hyperscript interface
71-
// to *anything*!
70+
// Transform a hast node through a hyperscript interface to *anything*!
7271
function toH(h, node, ctx) {
7372
var parentSchema = ctx.schema
7473
var schema = parentSchema
@@ -131,8 +130,8 @@ function toH(h, node, ctx) {
131130
}
132131
}
133132

134-
// Ensure no React warnings are triggered for
135-
// void elements having children passed in.
133+
// Ensure no React warnings are triggered for void elements having children
134+
// passed in.
136135
result =
137136
elements.length === 0 ? h(name, attributes) : h(name, attributes, elements)
138137

@@ -161,7 +160,8 @@ function addAttribute(props, prop, value, ctx) {
161160
}
162161

163162
if (value !== null && typeof value === 'object' && 'length' in value) {
164-
// Accept `array`. Most props are space-separater.
163+
// Accept `array`.
164+
// Most props are space-separated.
165165
value = (info.commaSeparated ? commas : spaces).stringify(value)
166166
}
167167

0 commit comments

Comments
 (0)