repositories
/
e-mobility-charging-stations-simulator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Avoid strings concatenation
[e-mobility-charging-stations-simulator.git]
/
src
/
utils
/
FileUtils.ts
diff --git
a/src/utils/FileUtils.ts
b/src/utils/FileUtils.ts
index 69b5240d2ab3694fb2f7c6218c9fadf4ea9b48e9..ccee788bb99c5ac5d46623bceca00b53bb651fd2 100644
(file)
--- a/
src/utils/FileUtils.ts
+++ b/
src/utils/FileUtils.ts
@@
-52,7
+52,7
@@
export default class FileUtils {
error: NodeJS.ErrnoException,
params: HandleErrorParams<EmptyObject> = { throwError: true, consoleOut: false }
): void {
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':
let logMsg: string;
switch (error.code) {
case 'ENOENT':