Skip to content

Commit

Permalink
Update src/bloom/BloomFilter.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
bigtimebuddy authored Feb 14, 2024
1 parent b22dd18 commit f6a805f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/bloom/BloomFilter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f6a805f

Please sign in to comment.