mike-north/ember-api-actions

View on GitHub
addon/utils/serialize-and-push.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function serializeAndPush has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export default function serializeAndPush(this: Model, response: any) {
  if (!isDocWithData(response)) {
    // tslint:disable-next-line:no-console
    console.warn(
      'serializeAndPush may only be used with a JSON API document. Ignoring response. ' +
Severity: Minor
Found in addon/utils/serialize-and-push.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status