src/census/plugins/net.ts
Function getPatchIncomingRequestFunction
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected getPatchIncomingRequestFunction () {
return (original: (event: string) => boolean) => {
const plugin = this
// This function's signature is that of an event listener, which can have
// any number of variable-type arguments.
Function incomingRequest
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
return function incomingRequest (event: string, ...args: any[]): boolean {
// Only traces request events
if (event !== 'connection') {
return original.apply(this, arguments)
}