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
refactor: remove uneeded unknown intermediate type cast
[e-mobility-charging-stations-simulator.git]
/
src
/
charging-station
/
ui-server
/
UIHttpServer.ts
diff --git
a/src/charging-station/ui-server/UIHttpServer.ts
b/src/charging-station/ui-server/UIHttpServer.ts
index cb02d4a54101fd75b8962cee4586bc7b4622eb0d..ee12b3f4de996ed3a8f86b2a4db97949e9ebaf4e 100644
(file)
--- a/
src/charging-station/ui-server/UIHttpServer.ts
+++ b/
src/charging-station/ui-server/UIHttpServer.ts
@@
-132,9
+132,9
@@
export class UIHttpServer extends AbstractUIServer {
body ?? Constants.EMPTY_FREEZED_OBJECT,
),
)
body ?? Constants.EMPTY_FREEZED_OBJECT,
),
)
- .then((protocolResponse: ProtocolResponse) => {
+ .then((protocolResponse
?
: ProtocolResponse) => {
if (!isNullOrUndefined(protocolResponse)) {
if (!isNullOrUndefined(protocolResponse)) {
- this.sendResponse(protocolResponse);
+ this.sendResponse(protocolResponse
!
);
}
})
.catch(Constants.EMPTY_FUNCTION);
}
})
.catch(Constants.EMPTY_FUNCTION);