Skip to content

Commit

Permalink
Fix leader election error handling (#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
d-enk authored Aug 4, 2023
1 parent 5ae2269 commit 8d5b748
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/election/election.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ func (r *LeaderElection) GetLeaderInstance(ctx context.Context, cluster api.Clus
if cluster.IsBootstrapped() {
return r.ElectLeaderInstance(ctx, cluster)
}

return nil, err
}

return nil, err
}

return leader, nil
Expand Down

0 comments on commit 8d5b748

Please sign in to comment.