Skip to content

Commit 52369ee

Browse files
committed
Fix Range._incLower default
It should include the lower bound if `_lower` is not `null` or `undefined`
1 parent 551ed4b commit 52369ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/driver/src/datatypes/range.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export class Range<
2626
constructor(
2727
private readonly _lower: T | null,
2828
private readonly _upper: T | null,
29-
private readonly _incLower: boolean = true,
29+
private readonly _incLower: boolean = _lower != null,
3030
private readonly _incUpper: boolean = false
3131
) {}
3232

0 commit comments

Comments
 (0)