Cleanups.
[e-mobility-charging-stations-simulator.git] / src / charging-station / OcppError.js
index 1793eae3cded9cc8fe34aa6d06d35587509279f3..89ead59a953473e53cb58098e08fb6c50f0578b1 100644 (file)
@@ -8,7 +8,7 @@ class OCPPError extends Error {
 
     Object.setPrototypeOf(this, OCPPError.prototype); // for instanceof
 
-    Error.captureStackTrace ? (Error.captureStackTrace(this, this.constructor)) : (this.stack = (new Error()).stack);
+    Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : (this.stack = (new Error()).stack);
   }
 }