Remove TODO I thought about

This commit is contained in:
Kristóf Tóth 2018-03-15 12:40:01 +01:00
parent c69bac4e83
commit 496f997bb7

View File

@ -41,14 +41,9 @@ export class WebSocketService {
} }
public send(key: string, data?: any, trigger?: any): void { public send(key: string, data?: any, trigger?: any): void {
// TODO: do this nicer?
const message = {'key': key}; const message = {'key': key};
if (data) { if (data) { message['data'] = data; }
message['data'] = data; if (trigger) { message['trigger'] = trigger; }
}
if (trigger) {
message['trigger'] = trigger;
}
this.uplink.next(message); this.uplink.next(message);
} }
} }