ahbeng/NUSMods

View on GitHub
scrapers/nus-v2/src/services/nus-api.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function callApi has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

async function callApi<Data>(endpoint: string, params: ApiParams): Promise<Data> {
  // 1. Construct request URL
  const url = new URL(endpoint, config.baseUrl);
  let response;

Severity: Minor
Found in scrapers/nus-v2/src/services/nus-api.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status