Fixed zero threshold case for string array storage analyze

This commit is contained in:
sanex
2022-02-06 10:56:36 +03:00
parent 588d615d16
commit cd4bf15cc8
2 changed files with 30 additions and 23 deletions
@@ -138,6 +138,7 @@ export class StringArrayStorageAnalyzer implements IStringArrayStorageAnalyzer {
}
return literalNode.value.length >= StringArrayStorageAnalyzer.minimumLengthForStringArray
&& !!this.options.stringArrayThreshold
&& this.randomGenerator.getMathRandom() <= this.options.stringArrayThreshold;
}
}