Remove standard linter warnings

This commit is contained in:
Kevin Sawicki 2016-06-29 09:37:10 -07:00
parent 4afa32a7bb
commit 197ec98800
14 changed files with 87 additions and 94 deletions

View file

@ -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)
})
})