From 40e5c8e2adab5b5545a2bba282f74d32c3a23069 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Sun, 21 Oct 2018 12:49:25 +0200 Subject: [PATCH] Fix length of dict Signed-off-by: Knut Ahlers --- src/index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index c2f7135..12049fd 100644 --- a/src/index.js +++ b/src/index.js @@ -56,5 +56,10 @@ function applyFilterDefinition() { createdFilters++ } - console.log("%d filters removed, %d filters created, %d filters untouched", removedFilters, createdFilters, presentFilters.length - removedFilters) + console.log( + "%d filters removed, %d filters created, %d filters untouched", + removedFilters, + createdFilters, + Object.keys(presentFilters).length - removedFilters, + ) }