From 1b395f9910e64b46a8120a636b46305ed6dac7c1 Mon Sep 17 00:00:00 2001 From: Alexey Ivanov Date: Mon, 2 Dec 2019 21:14:34 +0900 Subject: [PATCH] Fix code styles --- pages/api/comments.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/api/comments.js b/pages/api/comments.js index f12b77c354..a50fc38f92 100644 --- a/pages/api/comments.js +++ b/pages/api/comments.js @@ -21,7 +21,7 @@ const getCommentCount = (req, res) => { request(`${url}.json`, (error, response, body) => { if (error || response.statusCode !== 200) { - res.status(502).json({ error: "Unexpected response from Forum" }) + res.status(502).json({ error: 'Unexpected response from Forum' }) return } @@ -29,7 +29,7 @@ const getCommentCount = (req, res) => { const json = JSON.parse(body) if (!json.posts_count) { - res.status(502).json({ error: "Unexpected payload from Forum" }) + res.status(502).json({ error: 'Unexpected payload from Forum' }) return }