Skip to content

Commit

Permalink
Remove dead code (#899)
Browse files Browse the repository at this point in the history
The success variable is never used for anything, so remove.
  • Loading branch information
danielgustafsson committed May 17, 2022
1 parent eab8acc commit cf44050
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/bin/pg_autoctl/cli_do_azure.c
Original file line number Diff line number Diff line change
Expand Up @@ -456,8 +456,6 @@ cli_do_azure_create_region(int argc, char **argv)
void
cli_do_azure_drop_region(int argc, char **argv)
{
bool success = true;

if (!azure_drop_region(&azRegion))
{
log_warn("Configuration file \"%s\" has not been deleted",
Expand All @@ -466,8 +464,7 @@ cli_do_azure_drop_region(int argc, char **argv)
}

log_info("Killing tmux sessions \"%s\"", azRegion.group);

success = success && tmux_azure_kill_session(&azRegion);
tmux_azure_kill_session(&azRegion);

log_info("Removing azure configuration file \"%s\"", azRegion.filename);

Expand Down

0 comments on commit cf44050

Please sign in to comment.