Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
addProfile = (profile) => {
if (isEmpty(profile) || contain(this.profiles, profile)) return false;
this.profiles.push(profile);
return true;
};
registry.projectConfiguration.store.project.module.availableEnvironments.forEach(environment => {
if (contain(environments, environment)) {
newAvailableEnvironments.push(environment);
}
});
registry.projectConfiguration.store.project.module.availableEnvironments = newAvailableEnvironments;
registry.projectConfiguration.store.project.module.availableServers.forEach(server => {
if (contain(servers, server)) {
newAvailableServers.push(server);
}
});
registry.projectConfiguration.store.project.module.availableServers = newAvailableServers;
registry.projectConfiguration.store.project.module.availableServers.forEach(server => {
if (contain(servers, server)) {
newAvailableServers.push(server);
}
});
registry.projectConfiguration.store.project.module.availableServers = newAvailableServers;