Skip to content
Myr

lint: remove unused parameters in examples

Before adoption: this commit came in with the history the project adopted, so no landing records it.

closes #5113

authored by Rakesh Bisht · committed by Douglas Christopher Wilson · parent 6b4c4f5 · Browse files · 3 files+5 added−5 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+5 added−5 removed

  • other:+5 added−5 removed

3 files+5 added−5 removed

modified:examples/error/index.js+1 added-1 removed
modified:examples/view-locals/index.js+2 added-2 removed
59 unmodified lines
60 next();61 })62}6364app.get('/middleware', count, users, function(req, res, next){64app.get('/middleware', count, users, function (req, res) {65 res.render('index', {66 title: 'Users',67 count: req.count,68 users: req.users.filter(ferrets)
29 unmodified lines
98 next();99 })100}101102app.get('/middleware-locals', count2, users2, function(req, res, next){102app.get('/middleware-locals', count2, users2, function (req, res) {103 // you can see now how we have much less104 // to pass to res.render(). If we have105 // several routes related to users this106 // can be a great productivity booster
49 unmodified lines
modified:examples/web-service/index.js+2 added-2 removed