Remove standard linter warnings
This commit is contained in:
parent
4afa32a7bb
commit
197ec98800
14 changed files with 87 additions and 94 deletions
|
@ -285,7 +285,7 @@ describe('session module', function () {
|
|||
const protocolName = 'sp'
|
||||
const partitionProtocol = session.fromPartition(partitionName).protocol
|
||||
const protocol = session.defaultSession.protocol
|
||||
const handler = function (error, callback) {
|
||||
const handler = function (_, callback) {
|
||||
callback({data: 'test', mimeType: 'text/html'})
|
||||
}
|
||||
|
||||
|
@ -298,7 +298,7 @@ describe('session module', function () {
|
|||
}
|
||||
})
|
||||
partitionProtocol.registerStringProtocol(protocolName, handler, function (error) {
|
||||
done(error ? error : undefined)
|
||||
done(error != null ? error : undefined)
|
||||
})
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue