Skip to content

Commit 8d5b748

Browse files
authored
Fix leader election error handling (#196)
1 parent 5ae2269 commit 8d5b748

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/election/election.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ func (r *LeaderElection) GetLeaderInstance(ctx context.Context, cluster api.Clus
5050
if cluster.IsBootstrapped() {
5151
return r.ElectLeaderInstance(ctx, cluster)
5252
}
53-
54-
return nil, err
5553
}
54+
55+
return nil, err
5656
}
5757

5858
return leader, nil

0 commit comments

Comments
 (0)