}
public static getInstance(): AuthorizedTagsCache {
- if (!AuthorizedTagsCache.instance) {
+ if (AuthorizedTagsCache.instance === null) {
AuthorizedTagsCache.instance = new AuthorizedTagsCache();
}
return AuthorizedTagsCache.instance;
}
public static getInstance(): Bootstrap {
- if (!Bootstrap.instance) {
+ if (Bootstrap.instance === null) {
Bootstrap.instance = new Bootstrap();
}
return Bootstrap.instance;
}
public static getInstance(): SharedLRUCache {
- if (!SharedLRUCache.instance) {
+ if (SharedLRUCache.instance === null) {
SharedLRUCache.instance = new SharedLRUCache();
}
return SharedLRUCache.instance;
}
public static getInstance<T extends OCPPIncomingRequestService>(this: new () => T): T {
- if (!OCPPIncomingRequestService.instance) {
+ if (OCPPIncomingRequestService.instance === null) {
OCPPIncomingRequestService.instance = new this();
}
return OCPPIncomingRequestService.instance as T;
this: new (ocppResponseService: OCPPResponseService) => T,
ocppResponseService: OCPPResponseService
): T {
- if (!OCPPRequestService.instance) {
+ if (OCPPRequestService.instance === null) {
OCPPRequestService.instance = new this(ocppResponseService);
}
return OCPPRequestService.instance as T;
}
public static getInstance<T extends OCPPResponseService>(this: new () => T): T {
- if (!OCPPResponseService.instance) {
+ if (OCPPResponseService.instance === null) {
OCPPResponseService.instance = new this();
}
return OCPPResponseService.instance as T;