Permalink
Browse files

reorder

  • Loading branch information...
1 parent 855f465 commit 38fee5ab90eb01424b03fa698408aa94c5755986 @rphillips rphillips committed Apr 19, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/cloudfiles/storage-object.js
@@ -94,12 +94,12 @@ StorageObject.prototype = {
mode: options.mode || 0666
});
writeFileStream.on('error', callback);
- var readFileStream = fs.createReadStream(this.local, { 'bufferSize': 8 * 1024 });
- readFileStream.on('error', callback);
- readFileStream.pipe(writeFileStream);
writeFileStream.on('close', function() {
callback(null, options.local);
});
+ var readFileStream = fs.createReadStream(this.local, { 'bufferSize': 8 * 1024 });
+ readFileStream.on('error', callback);
+ readFileStream.pipe(writeFileStream);
},
update: function (data, callback) {

0 comments on commit 38fee5a

Please sign in to comment.