Skip to content

Commit 4b91fa3

Browse files
curlys for @diasdavid
1 parent 970e081 commit 4b91fa3

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

src/stores/blockstore.js

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,10 @@ exports.setUp = (basePath, BlobStore, locks) => {
5959
pull(
6060
store.read(p),
6161
pull.collect(release((err, data) => {
62-
if (err) return deferred.abort(err)
62+
if (err) {
63+
return deferred.abort(err)
64+
}
65+
6366
deferred.resolve(pull.values([
6467
new Block(Buffer.concat(data), ext)
6568
]))
@@ -78,7 +81,10 @@ exports.setUp = (basePath, BlobStore, locks) => {
7881
const sink = write((blocks, cb) => {
7982
parallel(blocks.map((block) => (cb) => {
8083
writeBlock(block, (err, meta) => {
81-
if (err) return cb(err)
84+
if (err) {
85+
return cb(err)
86+
}
87+
8288
if (push) {
8389
const read = push
8490
push = null
@@ -97,7 +103,9 @@ exports.setUp = (basePath, BlobStore, locks) => {
97103

98104
const source = (end, cb) => {
99105
if (end) ended = end
100-
if (ended) return cb(ended)
106+
if (ended) {
107+
return cb(ended)
108+
}
101109

102110
if (written.length) {
103111
return cb(null, written.shift())

0 commit comments

Comments
 (0)