Skip to content
This repository was archived by the owner on Aug 30, 2021. It is now read-only.

Commit 7070796

Browse files
committed
Prettier res.status().format()
(due tabs — my editor has tab-spacing set to 2 so I don’t notice when stuff like this looks crappy)
1 parent fd17026 commit 7070796

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

modules/core/server/controllers/core.server.controller.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@ exports.renderServerError = function(req, res) {
2424
*/
2525
exports.renderNotFound = function(req, res) {
2626

27-
res
28-
.status(404)
29-
.format({
27+
res.status(404).format({
3028
'text/html': function(){
3129
res.render('modules/core/server/views/404', {
3230
url: req.originalUrl

0 commit comments

Comments
 (0)