evandcoleman/node-appletv

View on GitHub
src/lib/connection.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function sendProtocolMessage has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  private sendProtocolMessage(message: ProtoMessage<{}>, name: string, type: number, waitForResponse: boolean, credentials?: Credentials): Promise<Message> {
    let that = this;
    return new Promise<Message>((resolve, reject) => {
      let ProtocolMessage: any = message.$type;

Severity: Minor
Found in src/lib/connection.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status