src/server/utilities/extractHeaders/index.ts

Summary

Maintainability
A
1 hr
Test Coverage
A
100%

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

const extractHeaders = (headers: IncomingHttpHeaders) => {
  let isUK = null;
  let showCookieBannerBasedOnCountry = true;
  if (headers['x-bbc-edge-isuk']) {
    isUK = headers['x-bbc-edge-isuk'] === 'yes';
Severity: Minor
Found in src/server/utilities/extractHeaders/index.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status