From a2c8edf517e58ee1970b642c6402669bb16e8684 Mon Sep 17 00:00:00 2001 From: Ivan Gagarinov Date: Tue, 2 Jul 2024 18:21:17 +0500 Subject: [PATCH] fix --- Dockerfile | 2 +- src/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 09618f6..4db549b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM silviof/docker-languagetool +FROM silviof/docker-languagetool:6.4 # ADD https://languagetool.org/download/ngram-data/ngrams-nl-20181229.zip /ngrams.zip # RUN unzip ngrams diff --git a/src/index.js b/src/index.js index 139774a..b987991 100644 --- a/src/index.js +++ b/src/index.js @@ -171,7 +171,7 @@ const getErrors = async (dirPath = '/content', rules = []) => { return resultCheckFile; }); - return Promise.all(promises).then((results) => results.flat()).catch((e) => console.log(e)); + return Promise.all(promises).then((results) => results.flat().filter((item) => item)); }; const formatContextMessage = (context, offset, length) => {