Enterprise-CMCS/macpro-mako

View on GitHub
lib/lambda/getPackageActions.ts

Summary

Maintainability
A
1 hr
Test Coverage
B
89%

Avoid too many return statements within this function.
Open

    return response({
      statusCode: 200,
      body: {
        actions: getAvailableActions(userAttr, result._source),
      },
Severity: Major
Found in lib/lambda/getPackageActions.ts - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

        return response({
          statusCode: 500,
          body: { message: "Internal server error" },
        });
    Severity: Major
    Found in lib/lambda/getPackageActions.ts - About 30 mins to fix

      There are no issues that match your filters.

      Category
      Status