X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Futils%2FConfiguration.ts;h=8c3d15ccbdde967cb0051f9dab2cd36f5c5d9c7f;hb=31f59c6d2def2ab2b53240c1d3d35333ac00933b;hp=7d5b217d5faafa331c8b16ae4768e65003e9c691;hpb=617cad0c86c3fea53b56a738bb0d6ddc3da05237;p=e-mobility-charging-stations-simulator.git diff --git a/src/utils/Configuration.ts b/src/utils/Configuration.ts index 7d5b217d..8c3d15cc 100644 --- a/src/utils/Configuration.ts +++ b/src/utils/Configuration.ts @@ -322,13 +322,13 @@ export class Configuration { ) { console.error( chalk`{green ${Configuration.logPrefix()}} {red Deprecated configuration key '${key}' usage in section '${sectionName}'${ - logMsgToAppend.trim().length > 0 && `. ${logMsgToAppend}` + logMsgToAppend.trim().length > 0 ? `. ${logMsgToAppend}` : '' }}` ); } else if (!Utils.isUndefined(Configuration.getConfig()[key])) { console.error( chalk`{green ${Configuration.logPrefix()}} {red Deprecated configuration key '${key}' usage${ - logMsgToAppend.trim().length > 0 && `. ${logMsgToAppend}` + logMsgToAppend.trim().length > 0 ? `. ${logMsgToAppend}` : '' }}` ); }