diff --git a/lib/server/rest.js b/lib/server/rest.js index 9b9aa4c0..adcc666b 100644 --- a/lib/server/rest.js +++ b/lib/server/rest.js @@ -262,7 +262,7 @@ } function operation(op, from, to, names, fn) { - var packer, wasError; + var packer; if (!fn) { fn = names; @@ -274,7 +274,6 @@ packer = jaguar[op](from, to, names); packer.on('error', function(error) { - wasError = true; fn(error); });