Skip to content

Commit

Permalink
Remove redundant nil check
Browse files Browse the repository at this point in the history
  • Loading branch information
Dean-Coakley committed Oct 15, 2019
1 parent ecb479c commit 656d0b3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions internal/configs/configurator.go
Original file line number Diff line number Diff line change
Expand Up @@ -646,10 +646,8 @@ func (cnf *Configurator) GetIngressCounts() map[string]int {

// GetVSCounts returns the total count of Vs/Vsr resources that are handled by the Ingress Controller
func (cnf *Configurator) GetVSCounts() (vsCount int, vsrCount int) {
vsCount = len(cnf.virtualServers)
for _, vs := range cnf.virtualServers {
if vs != nil {
vsCount++
}
vsrCount += len(vs.VirtualServerRoutes)
}

Expand Down

0 comments on commit 656d0b3

Please sign in to comment.