Skip to content

Commit 0654642

Browse files
committed
remove Js.Array2
1 parent 59125b6 commit 0654642

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/common/BlogApi.res

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,11 @@ let getAllPosts = () => {
7777
}
7878
})
7979

80-
let communityPosts = mdxFiles(communityPostsDirectory)->Js.Array2.map(path => {
80+
let communityPosts = mdxFiles(communityPostsDirectory)->Array.map(path => {
8181
let {GrayMatter.data: data} =
8282
Node.Path.join2(communityPostsDirectory, path)->Node.Fs.readFileSync->GrayMatter.matter
8383
switch BlogFrontmatter.decode(data) {
84-
| Error(msg) => Js.Exn.raiseError(msg)
84+
| Error(msg) => Exn.raiseError(msg)
8585
| Ok(d) => {
8686
path: Node.Path.join2("community", path),
8787
frontmatter: d,

0 commit comments

Comments
 (0)