Skip to content

Commit 46e3280

Browse files
abhijeethpmikelehen
authored andcommitted
Fix lint (#1652)
two NOs make a YES 😄
1 parent 4ec3191 commit 46e3280

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/database/src/core/view/QueryParams.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ export class QueryParams {
264264
startAt(indexValue: any, key?: string | null): QueryParams {
265265
const newParams = this.copy_();
266266
newParams.startSet_ = true;
267-
if (!(indexValue !== undefined)) {
267+
if (indexValue === undefined) {
268268
indexValue = null;
269269
}
270270
newParams.indexStartValue_ = indexValue;
@@ -286,7 +286,7 @@ export class QueryParams {
286286
endAt(indexValue: any, key?: string | null): QueryParams {
287287
const newParams = this.copy_();
288288
newParams.endSet_ = true;
289-
if (!(indexValue !== undefined)) {
289+
if (indexValue === undefined) {
290290
indexValue = null;
291291
}
292292
newParams.indexEndValue_ = indexValue;

0 commit comments

Comments
 (0)