Remove redundant check
This commit is contained in:
parent
6e1b576bcf
commit
f7fa595d71
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user