Fix unused unicode ranges metric

This commit is contained in:
Gaël Métais
2021-04-04 23:43:55 +01:00
parent ac37ebb4e2
commit 201bf75bf7
2 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -79,7 +79,7 @@ var Runner = function(params) {
});
// Fix: don't display Unicode ranges if the module is not present in Phantomas
if (!data.toolsResults.phantomas.metrics.charactersCount) {
if (!data.toolsResults.phantomas.metrics.differentCharacters) {
delete data.toolsResults.redownload.metrics.unusedUnicodeRanges;
delete data.toolsResults.redownload.offenders.unusedUnicodeRanges;
}