Skip to content

Commit

Permalink
Remove dead code (#886)
Browse files Browse the repository at this point in the history
Commit 5304068 changed the conditionals in the if statement making
the conditions equal. Remove the dead code block.
  • Loading branch information
danielgustafsson committed May 13, 2022
1 parent b337619 commit 8d50e54
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/bin/pg_autoctl/monitor.c
Original file line number Diff line number Diff line change
Expand Up @@ -1327,12 +1327,6 @@ monitor_remove_by_nodename(Monitor *monitor,
}

if (!context.parsedOK)
{
log_error("Failed to remove node \"%s\" in formation \"%s\" "
"from the monitor", name, formation);
return false;
}
else if (!context.parsedOK)
{
log_error("Failed to remove node \"%s\" in formation \"%s\" "
"from the monitor: could not parse monitor's result.",
Expand Down

0 comments on commit 8d50e54

Please sign in to comment.