Skip to content

Commit

Permalink
Router: remove redundant cast in ConfigAdvancedHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
eyedeekay committed Oct 11, 2023
1 parent 3280dd1 commit 79d456a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ private void saveChanges() {
private void saveFF() {
boolean saved = _context.router().saveConfig(ConfigAdvancedHelper.PROP_FLOODFILL_PARTICIPANT, _ff);
if (_ff.equals("false") || _ff.equals("true")) {
FloodfillNetworkDatabaseFacade fndf = (FloodfillNetworkDatabaseFacade) _context.netDb();
FloodfillNetworkDatabaseFacade fndf = _context.netDb();
boolean isFF = _ff.equals("true");
// this will rebuild the RI, log in the event log, etc.
fndf.setFloodfillEnabled(isFF);
Expand Down

0 comments on commit 79d456a

Please sign in to comment.