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
Guart against duplicate CS start/stop, take 2
[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 4142ee251f354ed31100c530a5732e25e1f3c013..d39fbee61e6fa6e27a13fbddbab25dbdffee2d06 100644
(file)
--- a/
src/charging-station/AuthorizedTagsCache.ts
+++ b/
src/charging-station/AuthorizedTagsCache.ts
@@
-16,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;