Skip to content

Commit

Permalink
Fix code styles
Browse files Browse the repository at this point in the history
  • Loading branch information
iAdramelk committed Dec 4, 2019
1 parent 6747a20 commit 1b395f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pages/api/comments.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ 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
}

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
}
Expand Down

0 comments on commit 1b395f9

Please sign in to comment.