Skip to content

Commit 531f1c1

Browse files
Lint
1 parent d122ae0 commit 531f1c1

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

packages/firestore/src/model/document.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export class Document extends MaybeDocument {
8484
return this.objectValue.field(path);
8585
} else {
8686
assert(
87-
this.proto != undefined && this.converter != undefined,
87+
this.proto !== undefined && this.converter !== undefined,
8888
'Expected proto and converter to be defined.'
8989
);
9090

@@ -98,23 +98,23 @@ export class Document extends MaybeDocument {
9898

9999
let fieldValue = this.fieldValueCache.get(canonicalPath);
100100

101-
if (fieldValue == undefined) {
101+
if (fieldValue === undefined) {
102102
// Instead of deserializing the full Document proto, we only
103103
// deserialize the value at the requested field path. This speeds up
104104
// Query execution as query filters can discard documents based on a
105105
// single field.
106106
let protoValue: api.Value | undefined = this.proto!.fields[
107107
path.firstSegment()
108108
];
109-
for (let i = 1; protoValue != undefined && i < path.length; ++i) {
109+
for (let i = 1; protoValue !== undefined && i < path.length; ++i) {
110110
if (protoValue.mapValue) {
111111
protoValue = protoValue.mapValue.fields[path.get(i)];
112112
} else {
113113
protoValue = undefined;
114114
}
115115
}
116116

117-
if (protoValue == undefined) {
117+
if (protoValue === undefined) {
118118
fieldValue = null;
119119
} else {
120120
fieldValue = this.converter!(protoValue);
@@ -135,7 +135,7 @@ export class Document extends MaybeDocument {
135135
data(): ObjectValue {
136136
if (!this.objectValue) {
137137
assert(
138-
this.proto != undefined && this.converter != undefined,
138+
this.proto !== undefined && this.converter !== undefined,
139139
'Expected proto and converter to be defined.'
140140
);
141141

packages/firestore/src/remote/serializer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -528,8 +528,8 @@ export class JsonProtoSerializer {
528528
document: api.Document,
529529
hasCommittedMutations?: boolean
530530
): Document {
531-
let key = this.fromName(document.name!);
532-
let version = this.fromVersion(document.updateTime!);
531+
const key = this.fromName(document.name!);
532+
const version = this.fromVersion(document.updateTime!);
533533
return new Document(
534534
key,
535535
version,

packages/firestore/test/integration/api/database.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1112,7 +1112,7 @@ apiDescribe('Database', (persistence: boolean) => {
11121112
});
11131113
});
11141114

1115-
it.only('calling shutdown mutiple times should proceed', async () => {
1115+
it('calling shutdown mutiple times should proceed', async () => {
11161116
await withTestDoc(persistence, async docRef => {
11171117
const firestore = docRef.firestore;
11181118
await shutdownDb(firestore);

0 commit comments

Comments
 (0)