Skip to content

Commit

Permalink
chore(linting): no-unused-vars
Browse files Browse the repository at this point in the history
  • Loading branch information
lukekarrys committed May 4, 2024
1 parent aff6730 commit 9795e99
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/examples/cli-progress.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ client.on('progress', (key, data) => {
bars[key].setTotal(data.total)
})
// a bar is done, tell multibar to stop updating it
client.on('barDone', (key, data) => {
client.on('barDone', (key) => {
bars[key].stop()
})
// all bars done, tell multibar to close entirely
Expand Down
4 changes: 2 additions & 2 deletions test/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ t.test('basic', t => {
t.equal(c.listening, true, 'still listening')

c.stop()
c.once('progress', (key, data) => {})
c.once('progress', () => {})
t.equal(c.listening, true, 'listening because once handler added')
c.emit('progress')
t.equal(c.listening, false, 'not listening because once handler removed')
Expand All @@ -24,7 +24,7 @@ t.test('basic', t => {
t.equal(c.listening, true, 'listening, because progress event handler added')

let sawProgress = false
c.once('progress', (key, data) => {
c.once('progress', () => {
sawProgress = true
})

Expand Down

0 comments on commit 9795e99

Please sign in to comment.