Comparing version 3.0.1 to 3.0.2
@@ -268,4 +268,4 @@ var raf = require('random-access-file') | ||
storage.write(0, buf, function (err) { | ||
storage.close(function () { | ||
cb(err) | ||
storage.close(function (err2) { | ||
cb(err || err2) | ||
}) | ||
@@ -282,4 +282,4 @@ }) | ||
var str = buf.toString() | ||
storage.close(function () { | ||
cb(null, str) | ||
storage.close(function (err) { | ||
cb(err, err ? null : str) | ||
}) | ||
@@ -286,0 +286,0 @@ }) |
@@ -5,3 +5,3 @@ { | ||
"author": "Stephen Whitmore <sww@eight.net>", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "url": "git://github.com/noffle/multifeed.git" |
35965