ANDROID-96: Simplify and use return code from node_init directly

This commit is contained in:
Brenton Bostick 2023-08-15 10:42:05 -04:00
parent d4e63fcdfe
commit 826a1ee346
2 changed files with 2 additions and 43 deletions

View file

@ -75,8 +75,8 @@ public class Node {
EventListener eventListener,
VirtualNetworkFrameListener frameListener,
VirtualNetworkConfigListener configListener,
PathChecker pathChecker) throws NodeException {
ResultCode rc = node_init(
PathChecker pathChecker) {
return node_init(
nodeId,
getListener,
putListener,
@ -85,10 +85,6 @@ public class Node {
frameListener,
configListener,
pathChecker);
if(rc != ResultCode.RESULT_OK) {
throw new NodeException(rc.toString());
}
return rc;
}
public boolean isInited() {