Remove redundant check

This commit is contained in:
Isaac Shoebottom 2023-11-03 22:17:40 -03:00
parent 6e1b576bcf
commit f7fa595d71

View File

@ -117,10 +117,6 @@ export function performFunctionIfCapable(ns: NS, server: string, func: CallableF
return false return false
} }
} }
if (!ns.hasRootAccess(server)) {
ns.print(`Failed to root ${server}`)
return false
}
let result = func(...args) let result = func(...args)
if (result === undefined) { if (result === undefined) {
return true return true