From f6a805fb1005df204de149cb19f70b9457c499f6 Mon Sep 17 00:00:00 2001 From: Matt Karl Date: Wed, 14 Feb 2024 11:16:24 -0500 Subject: [PATCH] Update src/bloom/BloomFilter.ts --- src/bloom/BloomFilter.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bloom/BloomFilter.ts b/src/bloom/BloomFilter.ts index 14bbedc49..92acb09a0 100644 --- a/src/bloom/BloomFilter.ts +++ b/src/bloom/BloomFilter.ts @@ -84,9 +84,9 @@ export class BloomFilter extends AlphaFilter options = { strength }; - if (args[1]) options.quality = args[1]; - if (args[2]) options.resolution = args[2]; - if (args[3]) options.kernelSize = args[3]; + if (args[1] !== undefined) options.quality = args[1]; + if (args[2] !== undefined) options.resolution = args[2]; + if (args[3] !== undefined) options.kernelSize = args[3]; } options = { ...BloomFilter.DEFAULT_OPTIONS, ...options } as BloomFilterOptions;