Remove unnecessary parentheses and refactor bot messages

This commit is contained in:
R. Richard
2019-08-08 16:18:26 +02:00
parent 6e22e7efe9
commit 0b65b9f5f3
5 changed files with 16 additions and 13 deletions
+3 -3
View File
@@ -73,7 +73,7 @@ export class IdeComponent implements OnInit {
}
subscribeWS() {
this.webSocketService.observeKey<WebSocketMessage>('ide').subscribe((message) => {
this.webSocketService.observeKey<WebSocketMessage>('ide').subscribe(message => {
this.command_handlers[message.key](message);
this.changeDetectorRef.detectChanges();
});
@@ -89,7 +89,7 @@ export class IdeComponent implements OnInit {
this.processManagerService.init();
this.processManagerService.subscribeCallback(
config.ide.deployProcessName,
(message) => {
message => {
this.deploymentNotificationService.deploying.next(false);
this.newLogs.emit({
stdout: message.stdout,
@@ -100,7 +100,7 @@ export class IdeComponent implements OnInit {
this.processManagerService.subscribeSuccessCallback(
config.ide.deployProcessName,
(message) => this.setDeployButtonState(DeployButtonState.DEPLOYED)
message => this.setDeployButtonState(DeployButtonState.DEPLOYED)
);
this.processManagerService.subscribeErrorCallback(