Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function hostileRemove(lines, port) {
// Try to remove entry, if it exists
const filteredLines = lines.filter(filterFunc, { port });
return hostile.writeFile(filteredLines, () => {
resolve(ip);
});
}