Skip to content

Commit

Permalink
Fix Range._incLower default
Browse files Browse the repository at this point in the history
It should include the lower bound if `_lower` is not `null` or
`undefined`
  • Loading branch information
scotttrinh committed Oct 26, 2023
1 parent 551ed4b commit 52369ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/driver/src/datatypes/range.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class Range<
constructor(
private readonly _lower: T | null,
private readonly _upper: T | null,
private readonly _incLower: boolean = true,
private readonly _incLower: boolean = _lower != null,
private readonly _incUpper: boolean = false
) {}

Expand Down

0 comments on commit 52369ee

Please sign in to comment.