+import fs from 'fs';
+
import { FileType } from '../types/FileType';
import FileUtils from '../utils/FileUtils';
-import Utils from '../utils/Utils';
-import fs from 'fs';
import logger from '../utils/Logger';
+import Utils from '../utils/Utils';
export default class AuthorizedTagsCache {
private static instance: AuthorizedTagsCache | null = null;
}
public static getInstance(): AuthorizedTagsCache {
- if (!AuthorizedTagsCache.instance) {
+ if (AuthorizedTagsCache.instance === null) {
AuthorizedTagsCache.instance = new AuthorizedTagsCache();
}
return AuthorizedTagsCache.instance;