Skip to content

Commit

Permalink
Remove redundant if branch
Browse files Browse the repository at this point in the history
  • Loading branch information
mikutas committed Oct 17, 2023
1 parent 96958f8 commit e56c2d8
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,7 @@ func NewLimitsRangeCalculator(f informers.SharedInformerFactory) (*limitsChecker
go informer.Run(stopCh)
ok := cache.WaitForCacheSync(stopCh, informer.HasSynced)
if !ok {
if !f.Core().V1().LimitRanges().Informer().HasSynced() {
return nil, fmt.Errorf("informer did not sync")
}
return nil, fmt.Errorf("informer did not sync")
}
return &limitsChecker{limitRangeLister}, nil
}
Expand Down

0 comments on commit e56c2d8

Please sign in to comment.