Skip to content

Commit 0494832

Browse files
authored
docs: remove obj arg from end events (#1352)
1 parent 97981a1 commit 0494832

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/API.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ const stream = minioClient.listObjects('mybucket', '', true)
296296
stream.on('data', function (obj) {
297297
data.push(obj)
298298
})
299-
stream.on('end', function (obj) {
299+
stream.on('end', function () {
300300
console.log(data)
301301
})
302302
stream.on('error', function (err) {
@@ -313,7 +313,7 @@ const stream = minioClient.listObjects('mybucket', '', true, { IncludeVersion: t
313313
stream.on('data', function (obj) {
314314
data.push(obj)
315315
})
316-
stream.on('end', function (obj) {
316+
stream.on('end', function () {
317317
console.log(data)
318318
})
319319
stream.on('error', function (err) {

0 commit comments

Comments
 (0)