Skip to content

Commit

Permalink
Remove useless "if (ret == 1)" from rebuild_scap
Browse files Browse the repository at this point in the history
The update_scap function call will only return 0 or -1, but not 1.
  • Loading branch information
timopollmeier committed Jun 5, 2024
1 parent 5306d34 commit 3151db6
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/manage_sql_secinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -4041,8 +4041,6 @@ rebuild_scap ()
return -1;

ret = update_scap (TRUE);
if (ret == 1)
ret = 2;

if (ret == 0)
update_scap_extra ();
Expand Down

0 comments on commit 3151db6

Please sign in to comment.