diff --git a/lib/server/rest.js b/lib/server/rest.js index e85c9c25..8037c729 100644 --- a/lib/server/rest.js +++ b/lib/server/rest.js @@ -309,9 +309,9 @@ function operation(op, from, to, names, fn) { } function copy(from, to, names, fn) { - var error, - tmpl = '\r copy {{ from }} {{ to }} {{ count }}%', - cp = copymitter(from, to, names); + var error; + var tmpl = '\r copy {{ from }} {{ to }} {{ count }}%'; + var cp = copymitter(from, to, names); cp.on('error', function(e) { error = e;