Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function createClient(type) {
switch (type) {
case "gitlab":
return createGitLabClient();
case "github":
return createGitHubClient();
/* istanbul ignore next: guarded by yargs.choices() */
default:
throw new ValidationError("ERELEASE", "Invalid release client type");
}
}