Clean up pkg/api.

These are based on recommendation from
[staticcheck](http://staticcheck.io/).
This commit is contained in:
Àbéjídé Àyodélé
2019-05-09 15:23:41 +00:00
parent 524169fe1c
commit 04be2c4162
5 changed files with 7 additions and 8 deletions

View File

@@ -604,8 +604,7 @@ func TestUpdatePodCondition(t *testing.T) {
}
for _, test := range tests {
var resultStatus bool
resultStatus = UpdatePodCondition(test.status, &test.conditions)
resultStatus := UpdatePodCondition(test.status, &test.conditions)
assert.Equal(t, test.expected, resultStatus, test.desc)
}