Showing 2 of 9 total issues
Consider simplifying this complex logical expression. Open
Open
if ( from === 'ppb' || from === 'ppm' || from === 'particles/cm³' || to === 'ppb' ||
Function normalize
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
Open
export function normalize(data: AqicnData): OpenAQResults { const stationId = `aqicn|${data.idx}`; // Sometimes we don't get geo if (!data.city.geo) {
- Read upRead up