Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dzencot committed Jul 2, 2024
1 parent 78c997a commit a2c8edf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit a2c8edf

Please sign in to comment.