diff --git a/lib/formatters/csv-bal.cjs b/lib/formatters/csv-bal.cjs index ff5932d2..aa074ad2 100644 --- a/lib/formatters/csv-bal.cjs +++ b/lib/formatters/csv-bal.cjs @@ -111,15 +111,9 @@ function buildRow(voie, numero, position, {includesAlt = false, includesAllLang cad_parcelles: numero.parcelles ? numero.parcelles.join('|') : '', source: getSource(numero.sourcePosition) || getSource(voie.sourceNomVoie) || '', date_der_maj: numero.dateMAJ || '', - certification_commune: numero.certifie ? '1' : '0' - } - - if (includesAlt) { - row.push(...addIncludeAlt(voie, numero)) - } - - if (includesAllLang) { - row.push(...addIncludeAllLang(voie, numero)) + certification_commune: numero.certifie ? '1' : '0', + ...(includesAlt && addIncludeAlt(voie, numero)), + ...(includesAllLang && addIncludeAllLang(voie, numero)) } if (position) {