andywer/threads.js

View on GitHub
src/observable-promise.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function then has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  public then<TResult1 = T, TResult2 = never>(
    onFulfilledRaw?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null,
    onRejectedRaw?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null
  ): Promise<TResult1 | TResult2> {
    const onFulfilled: OnFulfilled<T, TResult1> = onFulfilledRaw || returnInput as any
Severity: Minor
Found in src/observable-promise.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status