Avoid strings concatenation
[e-mobility-charging-stations-simulator.git] / src / utils / FileUtils.ts
index 69b5240d2ab3694fb2f7c6218c9fadf4ea9b48e9..ccee788bb99c5ac5d46623bceca00b53bb651fd2 100644 (file)
@@ -52,7 +52,7 @@ export default class FileUtils {
     error: NodeJS.ErrnoException,
     params: HandleErrorParams<EmptyObject> = { throwError: true, consoleOut: false }
   ): void {
-    const prefix = !Utils.isEmptyString(logPrefix) ? logPrefix + ' ' : '';
+    const prefix = !Utils.isEmptyString(logPrefix) ? `${logPrefix} ` : '';
     let logMsg: string;
     switch (error.code) {
       case 'ENOENT':