refactor: rename a template key to a more sensible name
[e-mobility-charging-stations-simulator.git] / src / performance / storage / JsonFileStorage.ts
index 44340cc4e425a9b1faf5f520a9f69e344f8fab77..fcb35a4df0507569d941edbcb1aac223561e6be4 100644 (file)
@@ -5,7 +5,7 @@ import fs from 'node:fs';
 import lockfile from 'proper-lockfile';
 
 import { FileType, type Statistics } from '../../types';
-import { FileUtils, Utils } from '../../utils';
+import { Constants, FileUtils, Utils } from '../../utils';
 import { Storage } from '../internal';
 
 export class JsonFileStorage extends Storage {
@@ -42,9 +42,7 @@ export class JsonFileStorage extends Storage {
         }
         await release();
       })
-      .catch(() => {
-        /* This is intentional */
-      });
+      .catch(Constants.EMPTY_FUNCTION);
   }
 
   public open(): void {