Skip to content

Commit

Permalink
return to avoid multiple callbacks by async (#1062)
Browse files Browse the repository at this point in the history
  • Loading branch information
prakashsvmx authored Aug 27, 2022
1 parent 0d872bb commit cae3ccc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/minio.js
Original file line number Diff line number Diff line change
Expand Up @@ -641,10 +641,10 @@ export class Client {
// Retry with region returned as part of error
this.makeRequest({method, bucketName, headers}, payload, [200], err.region, false, cb)
} else {
cb && cb(err)
return cb && cb(err)
}
}
cb && cb(err)
return cb && cb(err)
}
this.makeRequest({method, bucketName, headers}, payload, [200], region, false, processWithRetry)
}
Expand Down

0 comments on commit cae3ccc

Please sign in to comment.