X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fcharging-station%2FAuthorizedTagsCache.ts;h=747b7593e422d5ef123444170a6cbc470a8333b0;hb=32c4b77bdc1c2d53bb2c37dd363d091816178190;hp=d39fbee61e6fa6e27a13fbddbab25dbdffee2d06;hpb=1ca780f9d385bcf96a016ab5ba57ca0f19c94b74;p=e-mobility-charging-stations-simulator.git diff --git a/src/charging-station/AuthorizedTagsCache.ts b/src/charging-station/AuthorizedTagsCache.ts index d39fbee6..747b7593 100644 --- a/src/charging-station/AuthorizedTagsCache.ts +++ b/src/charging-station/AuthorizedTagsCache.ts @@ -23,10 +23,10 @@ export default class AuthorizedTagsCache { } public getAuthorizedTags(file: string): string[] { - if (!this.hasTags(file)) { + if (this.hasTags(file) === false) { this.setTags(file, this.getAuthorizedTagsFromFile(file)); // Monitor authorization file - !this.FSWatchers.has(file) && + this.FSWatchers.has(file) === false && this.FSWatchers.set( file, FileUtils.watchJsonFile(