Skip to content

Commit

Permalink
Refactor code-style
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed May 28, 2022
1 parent cb45d5b commit c798389
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/all.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ import {one} from './one.js'
*
*/
export function all(parent, ctx) {
/** @type {Array.<Child>} */
/** @type {Array<Child>} */
const children = (parent && parent.children) || []
let index = -1
/** @type {Array.<string>} */
/** @type {Array<string>} */
const results = []

while (++index < children.length) {
Expand Down
2 changes: 1 addition & 1 deletion lib/element.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export function element(node, ctx) {
/** @type {Attributes} */
const attributes = node.attributes || {}
const close = content ? false : ctx.close
/** @type {Array.<string>} */
/** @type {Array<string>} */
const attrs = []
/** @type {string} */
let key
Expand Down
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ import {one} from './one.js'
/**
* Serialize the given xast tree (or list of nodes).
*
* @param {Node|Array.<Node>} node
* @param {Node|Array<Node>} node
* @param {Options} [options]
* @returns {string}
*/
Expand Down
2 changes: 1 addition & 1 deletion lib/util-escape.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const noncharacter = /[\u0000-\u0008\u000B\u000C\u000E-\u001F]/g
* Escape a string.
*
* @param {string} value
* @param {Array.<string>} subset
* @param {Array<string>} subset
* @param {RegExp} [unsafe]
* @returns {string}
*/
Expand Down

0 comments on commit c798389

Please sign in to comment.