Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public addServer(data: ServerData): void {
console.info("[ServersSectionComponent] Adding a server: %s", data.url);
let newServer: Oas30Server = this.parent.createServer();
this.copyServerToModel(data, newServer);
let command: ICommand = CommandFactory.createNewServerCommand(this.parent, newServer);
this.commandService.emit(command);
}