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

View File

@ -57,7 +57,7 @@ export class DashboardComponent implements OnInit, OnDestroy {
}
initCommandHandling() {
this.webSocketService.observeKey<WebSocketMessage>('dashboard').subscribe((message) => {
this.webSocketService.observeKey<WebSocketMessage>('dashboard').subscribe(message => {
this.command_handlers[message.key](message);
this.changeDetectorRef.detectChanges();
});