Skip to content

Commit

Permalink
revise by comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Song Gao committed Mar 2, 2020
1 parent 98a23e9 commit d205605
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pkg/webhook/pod/tikv_creater.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,7 @@ func filterLeaderEvictScheduler(evictLeaderSchedulers []string, pdClient pdapi.P
if err != nil {
return schedulerIds, err
}
if c.Schedule != nil {
if c.Schedule.SchedulersPayload == nil {
c.Schedule.SchedulersPayload = map[string]string{}
}
if c.Schedule != nil && c.Schedule.SchedulersPayload != nil {
v, ok := c.Schedule.SchedulersPayload[evictSchedulerLeader]
if ok {
payload := &Payload{}
Expand Down

0 comments on commit d205605

Please sign in to comment.