[go: nahoru, domu]

Skip to content

Commit

Permalink
Fix typo in types
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Nov 25, 2023
1 parent a574921 commit 515c86c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export default function rehypeDocument(options) {
* Tree.
* @param {VFile} file
* File.
* @param {Root} tree
* @returns {Root}
* New tree.
*/
return function (tree, file) {
Expand Down Expand Up @@ -174,6 +174,6 @@ function toList(value) {
return value === null || value === undefined
? []
: Array.isArray(value)
? value
: [value]
? value
: [value]
}

0 comments on commit 515c86c

Please sign in to comment.