Skip to content

Commit

Permalink
Cleanup return handling
Browse files Browse the repository at this point in the history
  • Loading branch information
markushi committed Feb 14, 2025
1 parent 629aa4a commit 65fef80
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,13 @@ public void updateObservers() {
if (registerNetworkCallback(context, logger, buildInfoProvider, newNetworkCallback)) {
networkCallback = newNetworkCallback;
return true;
} else {
return false;
}
}
return true;
}
}
// networkCallback is already registered, so we can safely return true
return true;
}

Expand Down

0 comments on commit 65fef80

Please sign in to comment.