Skip to content

Commit 938af45

Browse files
Quaziagithub-actions[bot]
authored andcommitted
chore: format
1 parent 5b62aaa commit 938af45

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/filter/filters.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,13 @@ describe('parser', () => {
8383

8484
test('applies the bitmask and compares the result to the provided value with numerical operators', () => {
8585
const context = 0b1100
86-
const filter = { bitmask: 0b0100, value: { $gte: 0b0100n }}
86+
const filter = { bitmask: 0b0100, value: { $gte: 0b0100n } }
8787
expect(handleBitmask(context, filter)).toBe(true)
8888
})
8989

9090
test('returns false when the masked context does not equal the provided value with numerical operators', () => {
9191
const context = 0b1100
92-
const filter = { bitmask: 0b1100, value: { $gte: 0b11100n }}
92+
const filter = { bitmask: 0b1100, value: { $gte: 0b11100n } }
9393
expect(handleBitmask(context, filter)).toBe(false)
9494
})
9595

src/filter/filters.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ export const handleRegex = (context: any, filter: string): boolean => {
177177
*/
178178
export const handleBitmask = (context: any, filter: BitmaskFilter): boolean => {
179179
const maskedContext = BigInt(context) & BigInt(filter.bitmask)
180-
if(typeof filter.value === 'object') {
180+
if (typeof filter.value === 'object') {
181181
return apply(maskedContext as any, filter.value as FilterObject)
182182
}
183183
return maskedContext === BigInt(filter.value)

0 commit comments

Comments
 (0)