Skip to content

Commit 38a019a

Browse files
author
Amoki
committed
improve status
1 parent 4f4dffd commit 38a019a

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

lib/handlers/status.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,8 @@ module.exports = function(req, res, server, logger, next) {
1818
return next(err);
1919
}
2020
else {
21-
var ret = {
22-
'status': 'ok',
23-
'stats': stats
24-
};
25-
26-
res.send(ret);
21+
stats.status = 'ok';
22+
res.send(stats);
2723
next();
2824
}
2925
});

0 commit comments

Comments
 (0)