Skip to content

Commit

Permalink
docs: remove obj arg from end events (#1352)
Browse files Browse the repository at this point in the history
  • Loading branch information
alxndrsn authored Oct 24, 2024
1 parent 97981a1 commit 0494832
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ const stream = minioClient.listObjects('mybucket', '', true)
stream.on('data', function (obj) {
data.push(obj)
})
stream.on('end', function (obj) {
stream.on('end', function () {
console.log(data)
})
stream.on('error', function (err) {
Expand All @@ -313,7 +313,7 @@ const stream = minioClient.listObjects('mybucket', '', true, { IncludeVersion: t
stream.on('data', function (obj) {
data.push(obj)
})
stream.on('end', function (obj) {
stream.on('end', function () {
console.log(data)
})
stream.on('error', function (err) {
Expand Down

0 comments on commit 0494832

Please sign in to comment.