Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

code clean up, since _options is always an object

  • Loading branch information...
commit c83ee2cf8465c4e491a3d46d7c687d2a0eca9346 1 parent 47d9753
@jafl jafl authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/hbs.js
View
4 lib/hbs.js
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.