Skip to content

Commit

Permalink
Remove unused parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
kpdecker committed Aug 19, 2015
1 parent 958273c commit 08093d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/handlebars/compiler/javascript-compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ JavaScriptCompiler.prototype = {
// and pushes the result of the invocation back.
invokePartial: function(isDynamic, name, indent) {
let params = [],
options = this.setupParams(name, 1, params, false);
options = this.setupParams(name, 1, params);

if (isDynamic) {
name = this.popStack();
Expand Down Expand Up @@ -1003,7 +1003,7 @@ JavaScriptCompiler.prototype = {
},

setupHelperArgs: function(helper, paramSize, params, useRegister) {
let options = this.setupParams(helper, paramSize, params, true);
let options = this.setupParams(helper, paramSize, params);
options = this.objectLiteral(options);
if (useRegister) {
this.useRegister('options');
Expand Down

0 comments on commit 08093d7

Please sign in to comment.