Fix formatting

This commit is contained in:
charithag 2016-04-27 16:07:14 +05:30
parent fb52c5845d
commit 2a006684cc
2 changed files with 14 additions and 13 deletions

View File

@ -19,8 +19,9 @@
function onRequest(context) { function onRequest(context) {
var utility = require("/app/modules/utility.js").utility; var utility = require("/app/modules/utility.js").utility;
context.handlebars.registerHelper('equal', function (lvalue, rvalue, options) { context.handlebars.registerHelper('equal', function (lvalue, rvalue, options) {
if (arguments.length < 3) if (arguments.length < 3) {
throw new Error("Handlebars Helper equal needs 2 parameters"); throw new Error("Handlebars Helper equal needs 2 parameters");
}
if (lvalue != rvalue) { if (lvalue != rvalue) {
return options.inverse(this); return options.inverse(this);
} else { } else {