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
Implement singleton design pattern with strict null check
[e-mobility-charging-stations-simulator.git]
/
src
/
charging-station
/
Bootstrap.ts
diff --git
a/src/charging-station/Bootstrap.ts
b/src/charging-station/Bootstrap.ts
index 23307f4c34a74b509ba352c071fb3383566134f5..0fa2c88d35c868650e76fa059a86f75d96c54b7e 100644
(file)
--- a/
src/charging-station/Bootstrap.ts
+++ b/
src/charging-station/Bootstrap.ts
@@
-60,7
+60,7
@@
export default class Bootstrap {
}
public static getInstance(): Bootstrap {
- if (
!Bootstrap.instance
) {
+ if (
Bootstrap.instance === null
) {
Bootstrap.instance = new Bootstrap();
}
return Bootstrap.instance;