Skip to content
This repository has been archived by the owner on Aug 3, 2022. It is now read-only.

Commit

Permalink
[#869] Remove unused vars
Browse files Browse the repository at this point in the history
  • Loading branch information
brew committed Jan 5, 2017
1 parent a6559ad commit 4498102
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion census/controllers/mixins.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,6 @@ var requireAvailableYear = function(req, res, next) {
* If one is not passed, set to current year, and set cascade to true.
*/
if (typeof req.params.year === 'undefined') {
// req.params.year = req.app.get('year');
req.params.year = res.locals.surveyYear;
req.params.isYearImplicitlySet = true;
res.locals.year = req.params.year;
Expand Down
1 change: 0 additions & 1 deletion census/routes/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ var setLocals = function(req, res, next) {
res.locals.sysAdmin = req.app.get('sysAdmin');
res.locals.locales = config.get('locales');
res.locals.currentLocale = req.locale;
res.locals.currentYear = req.app.get('year');
// surveyYear may be overwritten by middleware
res.locals.surveyYear = req.app.get('year');

Expand Down

0 comments on commit 4498102

Please sign in to comment.