Add return type to methods
authorJérôme Benoit <jerome.benoit@sap.com>
Mon, 29 Aug 2022 21:37:33 +0000 (23:37 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Mon, 29 Aug 2022 21:37:33 +0000 (23:37 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/charging-station/ChargingStation.ts

index ccd72ff21e96177b2c0fdfa79ed4b9e7623fe0c9..a47bc68182a77de166b1dc9fd273a7d31d59265b 100644 (file)
@@ -748,7 +748,7 @@ export default class ChargingStation {
     }
   }
 
-  public startAutomaticTransactionGenerator() {
+  public startAutomaticTransactionGenerator(): void {
     if (!this.automaticTransactionGenerator) {
       this.automaticTransactionGenerator = AutomaticTransactionGenerator.getInstance(
         this.getAutomaticTransactionGeneratorConfigurationFromTemplate(),
@@ -767,7 +767,7 @@ export default class ChargingStation {
     }
   }
 
-  private flushMessageBuffer() {
+  private flushMessageBuffer(): void {
     if (this.messageBuffer.size > 0) {
       this.messageBuffer.forEach((message) => {
         // TODO: evaluate the need to track performance