emugaya/pop-api

View on GitHub

Showing 1 of 1 total issue

Function calculatePopulation has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

var calculateLocationPopulationFromChildren = async function calculatePopulation(location) {
    let areaPopulation = {
        id: location.id,
        name: location.name,
        parentLocationId: location.parent,
Severity: Minor
Found in endpoints/population.js - About 1 hr to fix
Severity
Category
Status
Source
Language