Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasG77 committed Jan 30, 2023
1 parent e53691b commit 124d100
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/population.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const {readCsvFile} = require('./util')
async function extractPopulation(path) {
const rows = await readCsvFile(path, {separator: ';'})
const refactoredRows = rows.map(commune => ({
codeCommune: `${commune.CODDEP.length == 3 ? commune.CODDEP.slice(0,2) : commune.CODDEP}${commune.CODCOM}`,
codeCommune: `${commune.CODDEP.length === 3 ? commune.CODDEP.slice(0, 2) : commune.CODDEP}${commune.CODCOM}`,
populationMunicipale: Number(commune.PMUN.replace(' ', ''))
}))
return {
Expand Down

0 comments on commit 124d100

Please sign in to comment.