Fix isEmptyString() semantic
[e-mobility-charging-stations-simulator.git] / src / charging-station / AuthorizedTagsCache.ts
index 5808f02b57f9a01b6fde9c1d75b281751b68fedd..a2b180e330600b37873d7c37b0e01c52edf2e3c6 100644 (file)
@@ -35,7 +35,7 @@ export default class AuthorizedTagsCache {
             file,
             null,
             (event, filename) => {
-              if (filename && event === 'change') {
+              if (!Utils.isEmptyString(filename) && event === 'change') {
                 try {
                   logger.debug(
                     `${this.logPrefix(file)} ${FileType.Authorization} file have changed, reload`