From 159b0dc862239e11eb0177403610ce8df7ad35b1 Mon Sep 17 00:00:00 2001 From: Blue Mouse Date: Sun, 15 Oct 2023 16:48:56 +0100 Subject: [PATCH] rm console.error --- apps/production/src/blog/blog.service.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/apps/production/src/blog/blog.service.ts b/apps/production/src/blog/blog.service.ts index c2332b25..b66b2f23 100644 --- a/apps/production/src/blog/blog.service.ts +++ b/apps/production/src/blog/blog.service.ts @@ -45,8 +45,7 @@ const getFileNames = async (category?: string): Promise => { } else { files = (await fs.readdir(BLOG_POSTS_PATH)) as string[] } - } catch (reason) { - console.error('[getFileNames]', reason) + } catch (_) { return [] } @@ -88,8 +87,7 @@ const getArticlesMetaData = async () => { try { dir = await fs.readdir(BLOG_POSTS_PATH) - } catch (reason) { - console.error('[getArticlesMetaData]', reason) + } catch (_) { return null }