Skip to content

Commit f1086b0

Browse files
committed
Fix lint errors.
1 parent 4fa0c08 commit f1086b0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,9 @@ apiDescribe('Bundles', (persistence: boolean) => {
129129
const projectId: string = db.app.options.projectId;
130130

131131
// Extract elements from BUNDLE_TEMPLATE, and replace project ID.
132-
var runningElement: string = '';
132+
let runningElement: string = '';
133133
const elements: string[] = [];
134-
var depth = 0;
134+
let depth = 0;
135135
for (const char of BUNDLE_TEMPLATE) {
136136
if (char === '{') {
137137
runningElement += char;
@@ -142,7 +142,7 @@ apiDescribe('Bundles', (persistence: boolean) => {
142142

143143
if (char === '}') {
144144
depth -= 1;
145-
if (depth == 0) {
145+
if (depth === 0) {
146146
// Obviously assuming TEMPLATE_PROJECT_ID only appear as project id in
147147
// the bundle, not as document id or filed value.
148148
elements.push(runningElement.replace(TEMPLATE_PROJECT_ID, projectId));
@@ -152,7 +152,7 @@ apiDescribe('Bundles', (persistence: boolean) => {
152152
}
153153

154154
// Recalculating length prefixes for elements that are not BundleMetadata.
155-
var bundleContent = '';
155+
let bundleContent = '';
156156
for (const element of elements.slice(1)) {
157157
const length = encoder.encode(element).byteLength;
158158
bundleContent += `${length}${element}`;

0 commit comments

Comments
 (0)