Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const serverFilter = server => server.publishState === ServerState.PUBLISH_STATE_NONE ||
server.publishState === ServerState.PUBLISH_STATE_INCREMENTAL ||
server.publishState === ServerState.PUBLISH_STATE_UNKNOWN;
const serverId = await this.selectServer(rsp.id, 'Select server to remove deployment from', serverFilter);