fix increment-decrement lint error

This commit is contained in:
danielqsj
2019-05-06 13:14:51 +08:00
parent c516bb51e3
commit 142fe19f2d
7 changed files with 15 additions and 15 deletions

View File

@@ -200,7 +200,7 @@ func containerGCTest(f *framework.Framework, test testRun) {
containerCount := 0
for _, containerName := range containerNames {
if containerName == pod.getContainerName(i) {
containerCount += 1
containerCount++
}
}
if containerCount > maxPerPodContainer+1 {
@@ -228,7 +228,7 @@ func containerGCTest(f *framework.Framework, test testRun) {
containerCount := 0
for _, containerName := range containerNames {
if containerName == pod.getContainerName(i) {
containerCount += 1
containerCount++
}
}
if pod.restartCount > 0 && containerCount < maxPerPodContainer+1 {