diff --git a/lib/MemoryHandler.js b/lib/MemoryHandler.js index da8bd0de..f87e9d5e 100644 --- a/lib/MemoryHandler.js +++ b/lib/MemoryHandler.js @@ -104,9 +104,8 @@ MemoryStore.prototype.delete = function(request, callback) { partialResource contains a subset of changes that need to be merged over the original. */ MemoryStore.prototype.update = function(request, partialResource, callback) { - var self = this; // Find the requested resource - self.find(request, function(err, theResource) { + this.find(request, function(err, theResource) { if (err) return callback(err); // Merge the partialResource over the original