Skip to content

Commit

Permalink
Prettier res.status().format()
Browse files Browse the repository at this point in the history
(due tabs — my editor has tab-spacing set to 2 so I don’t notice when
stuff like this looks crappy)
  • Loading branch information
simison committed May 18, 2015
1 parent fd17026 commit 7070796
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions modules/core/server/controllers/core.server.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ exports.renderServerError = function(req, res) {
*/
exports.renderNotFound = function(req, res) {

res
.status(404)
.format({
res.status(404).format({
'text/html': function(){
res.render('modules/core/server/views/404', {
url: req.originalUrl
Expand Down

0 comments on commit 7070796

Please sign in to comment.