Permalink
Browse files

code clean up, since _options is always an object

  • Loading branch information...
1 parent 47d9753 commit c83ee2cf8465c4e491a3d46d7c687d2a0eca9346 @jafl jafl committed Nov 12, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/hbs.js
View
@@ -132,12 +132,12 @@ exports.express3 = function(options) {
_options = options || {};
if (!_options.extname) _options.extname = '.hbs';
- if (_options && _options.handlebars) exports.handlebars = _options.handlebars;
+ if (_options.handlebars) exports.handlebars = _options.handlebars;
exports.handlebars.registerHelper('contentFor', contentFor);
exports.handlebars.registerHelper('block', block);
- partialsDir = _options && _options.partialsDir;
+ partialsDir = _options.partialsDir;
if (partialsDir) cachePartials();
return _express3;

0 comments on commit c83ee2c

Please sign in to comment.