}
public static getInstance(): AuthorizedTagsCache {
- if (!AuthorizedTagsCache.instance) {
+ if (AuthorizedTagsCache.instance === null) {
AuthorizedTagsCache.instance = new AuthorizedTagsCache();
}
return AuthorizedTagsCache.instance;
}
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(