Skip to content

Commit

Permalink
chore(eslint): Keep eslint happy
Browse files Browse the repository at this point in the history
  • Loading branch information
ejez committed Feb 28, 2020
1 parent f20b5de commit 5892673
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
9 changes: 3 additions & 6 deletions app/templates/ssr/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,9 @@ app.get('*', (req, res) => {
if (err) {
if (err.url) {
res.redirect(err.url)
}
else if (err.code === 404) {
} else if (err.code === 404) {
res.status(404).send('404 | Page Not Found')
}
else {
} else {
// Render Error Page or Redirect
res.status(500).send('500 | Internal Server Error')
if (ssr.settings.debug) {
Expand All @@ -90,8 +88,7 @@ app.get('*', (req, res) => {
console.error(err.stack)
}
}
}
else {
} else {
res.send(html)
}
})
Expand Down
9 changes: 3 additions & 6 deletions ui/dev/src-ssr/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,9 @@ app.get('*', (req, res) => {
if (err) {
if (err.url) {
res.redirect(err.url)
}
else if (err.code === 404) {
} else if (err.code === 404) {
res.status(404).send('404 | Page Not Found')
}
else {
} else {
// Render Error Page or Redirect
res.status(500).send('500 | Internal Server Error')
if (ssr.settings.debug) {
Expand All @@ -90,8 +88,7 @@ app.get('*', (req, res) => {
console.error(err.stack)
}
}
}
else {
} else {
res.send(html)
}
})
Expand Down

0 comments on commit 5892673

Please sign in to comment.