Skip to content

Commit

Permalink
rm console.error
Browse files Browse the repository at this point in the history
  • Loading branch information
Blaumaus committed Oct 15, 2023
1 parent 469ee8f commit 159b0dc
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions apps/production/src/blog/blog.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ const getFileNames = async (category?: string): Promise<string[]> => {
} else {
files = (await fs.readdir(BLOG_POSTS_PATH)) as string[]
}
} catch (reason) {
console.error('[getFileNames]', reason)
} catch (_) {
return []
}

Expand Down Expand Up @@ -88,8 +87,7 @@ const getArticlesMetaData = async () => {

try {
dir = await fs.readdir(BLOG_POSTS_PATH)
} catch (reason) {
console.error('[getArticlesMetaData]', reason)
} catch (_) {
return null
}

Expand Down

0 comments on commit 159b0dc

Please sign in to comment.