repositories
/
e-mobility-charging-stations-simulator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Web UI: cleanup commented out code
[e-mobility-charging-stations-simulator.git]
/
src
/
charging-station
/
AuthorizedTagsCache.ts
diff --git
a/src/charging-station/AuthorizedTagsCache.ts
b/src/charging-station/AuthorizedTagsCache.ts
index 4a9da4ce67f3bfa6e0ca699395f971d1a42712fc..d39fbee61e6fa6e27a13fbddbab25dbdffee2d06 100644
(file)
--- a/
src/charging-station/AuthorizedTagsCache.ts
+++ b/
src/charging-station/AuthorizedTagsCache.ts
@@
-1,8
+1,9
@@
+import fs from 'fs';
+
import { FileType } from '../types/FileType';
import FileUtils from '../utils/FileUtils';
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 logger from '../utils/Logger';
+import Utils from '../utils/Utils';
export default class AuthorizedTagsCache {
private static instance: AuthorizedTagsCache | null = null;
export default class AuthorizedTagsCache {
private static instance: AuthorizedTagsCache | null = null;
@@
-15,7
+16,7
@@
export default class AuthorizedTagsCache {
}
public static getInstance(): AuthorizedTagsCache {
}
public static getInstance(): AuthorizedTagsCache {
- if (
!AuthorizedTagsCache.instance
) {
+ if (
AuthorizedTagsCache.instance === null
) {
AuthorizedTagsCache.instance = new AuthorizedTagsCache();
}
return AuthorizedTagsCache.instance;
AuthorizedTagsCache.instance = new AuthorizedTagsCache();
}
return AuthorizedTagsCache.instance;