refactor: replace var with const / let (#14866)
This commit is contained in:
parent
b42493e6e6
commit
c61db523c7
26 changed files with 195 additions and 201 deletions
|
@ -663,7 +663,7 @@ describe('protocol module', () => {
|
|||
})
|
||||
|
||||
it('does not crash when handler is called twice', (done) => {
|
||||
var doubleHandler = (request, callback) => {
|
||||
const doubleHandler = (request, callback) => {
|
||||
try {
|
||||
callback(text)
|
||||
callback()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue