File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/firestore/test/integration/api Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -129,9 +129,9 @@ apiDescribe('Bundles', (persistence: boolean) => {
129
129
const projectId : string = db . app . options . projectId ;
130
130
131
131
// Extract elements from BUNDLE_TEMPLATE, and replace project ID.
132
- var runningElement : string = '' ;
132
+ let runningElement : string = '' ;
133
133
const elements : string [ ] = [ ] ;
134
- var depth = 0 ;
134
+ let depth = 0 ;
135
135
for ( const char of BUNDLE_TEMPLATE ) {
136
136
if ( char === '{' ) {
137
137
runningElement += char ;
@@ -142,7 +142,7 @@ apiDescribe('Bundles', (persistence: boolean) => {
142
142
143
143
if ( char === '}' ) {
144
144
depth -= 1 ;
145
- if ( depth == 0 ) {
145
+ if ( depth === 0 ) {
146
146
// Obviously assuming TEMPLATE_PROJECT_ID only appear as project id in
147
147
// the bundle, not as document id or filed value.
148
148
elements . push ( runningElement . replace ( TEMPLATE_PROJECT_ID , projectId ) ) ;
@@ -152,7 +152,7 @@ apiDescribe('Bundles', (persistence: boolean) => {
152
152
}
153
153
154
154
// Recalculating length prefixes for elements that are not BundleMetadata.
155
- var bundleContent = '' ;
155
+ let bundleContent = '' ;
156
156
for ( const element of elements . slice ( 1 ) ) {
157
157
const length = encoder . encode ( element ) . byteLength ;
158
158
bundleContent += `${ length } ${ element } ` ;
You can’t perform that action at this time.
0 commit comments