Skip to content

Commit a7b872e

Browse files
raksbishtdougwilson
authored andcommitted
lint: remove unused parameters in examples
1 parent a1efd9d commit a7b872e

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

examples/error/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function error(err, req, res, next) {
2626
res.send('Internal Server Error');
2727
}
2828

29-
app.get('/', function(req, res){
29+
app.get('/', function () {
3030
// Caught and passed down to the errorHandler middleware
3131
throw new Error('something broke!');
3232
});

examples/view-locals/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ function users(req, res, next) {
6161
})
6262
}
6363

64-
app.get('/middleware', count, users, function(req, res, next){
64+
app.get('/middleware', count, users, function (req, res) {
6565
res.render('index', {
6666
title: 'Users',
6767
count: req.count,
@@ -99,7 +99,7 @@ function users2(req, res, next) {
9999
})
100100
}
101101

102-
app.get('/middleware-locals', count2, users2, function(req, res, next){
102+
app.get('/middleware-locals', count2, users2, function (req, res) {
103103
// you can see now how we have much less
104104
// to pass to res.render(). If we have
105105
// several routes related to users this

examples/web-service/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,12 @@ var userRepos = {
7272
// and simply expose the data
7373

7474
// example: http://localhost:3000/api/users/?api-key=foo
75-
app.get('/api/users', function(req, res, next){
75+
app.get('/api/users', function (req, res) {
7676
res.send(users);
7777
});
7878

7979
// example: http://localhost:3000/api/repos/?api-key=foo
80-
app.get('/api/repos', function(req, res, next){
80+
app.get('/api/repos', function (req, res) {
8181
res.send(repos);
8282
});
8383

0 commit comments

Comments
 (0)