@@ -345,7 +345,7 @@ export class MemoryDriver implements Driver {
345345 }
346346
347347 // Get all records for this object type
348- let records : any [ ] = [ ] ;
348+ const records : any [ ] = [ ] ;
349349 for ( const [ key , value ] of this . store . entries ( ) ) {
350350 if ( key . startsWith ( pattern ) ) {
351351 records . push ( value ) ;
@@ -422,7 +422,7 @@ export class MemoryDriver implements Driver {
422422 const pattern = `${ objectName } :` ;
423423
424424 // Get all records for this object type
425- let records : any [ ] = [ ] ;
425+ const records : any [ ] = [ ] ;
426426 const recordKeys = new Map < string , string > ( ) ;
427427
428428 for ( const [ key , record ] of this . store . entries ( ) ) {
@@ -468,7 +468,7 @@ export class MemoryDriver implements Driver {
468468 const pattern = `${ objectName } :` ;
469469
470470 // Get all records for this object type
471- let records : any [ ] = [ ] ;
471+ const records : any [ ] = [ ] ;
472472 const recordKeys = new Map < string , string > ( ) ;
473473
474474 for ( const [ key , record ] of this . store . entries ( ) ) {
@@ -554,7 +554,7 @@ export class MemoryDriver implements Driver {
554554 const pattern = `${ objectName } :` ;
555555
556556 // Get all records for this object type
557- let records : any [ ] = [ ] ;
557+ const records : any [ ] = [ ] ;
558558 for ( const [ key , value ] of this . store . entries ( ) ) {
559559 if ( key . startsWith ( pattern ) ) {
560560 records . push ( { ...value } ) ;
0 commit comments