Skip to content

Commit f2664fb

Browse files
committed
fix: TS linting
1 parent dcfdac5 commit f2664fb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/block.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,7 @@ const tree = function * (source, base) {
7373
* @param {string[]} path
7474
*/
7575
const get = (source, path) => {
76-
/** @type {Record<string, any>} */
77-
let node = source
76+
let node = /** @type {Record<string, any>} */ (source)
7877
for (const [index, key] of path.entries()) {
7978
node = node[key]
8079
if (node == null) {

0 commit comments

Comments
 (0)