From f8ad234dd3b05e7d9595122427a043f100c1a945 Mon Sep 17 00:00:00 2001 From: Henrique Pinheiro Date: Tue, 14 May 2024 15:59:48 -0300 Subject: [PATCH] Ignora linhas vazias --- src/ocorrencia.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ocorrencia.ts b/src/ocorrencia.ts index ef89705..50678d0 100644 --- a/src/ocorrencia.ts +++ b/src/ocorrencia.ts @@ -91,6 +91,7 @@ await Promise.all([ ]) for (const { repositorio, kingdom, tag, url } of iptSources) { + if (!repositorio || !tag) continue; console.debug(`Processing ${repositorio}:${tag}\n${url}eml.do?r=${tag}`) const eml = await getEml(`${url}eml.do?r=${tag}`).catch((error) => { console.log('Erro baixando/processando eml', error.message)