Adds ineffassign to GO linter script.

Changes:
 - Enables ineffassign check in the verify scripts.
 - Fixes lint errs.
This commit is contained in:
Supriya Premkumar
2021-02-21 15:07:06 -08:00
parent 6404eda8de
commit e52e5e486c
10 changed files with 13 additions and 16 deletions

View File

@@ -1125,7 +1125,11 @@ func TestDeleteControllerAndExpectations(t *testing.T) {
manager.deleteRS(rs)
manager.syncReplicaSet(GetKey(rs, t))
if _, exists, err = manager.expectations.GetExpectations(rsKey); exists {
_, exists, err = manager.expectations.GetExpectations(rsKey)
if err != nil {
t.Errorf("Failed to get controllee expectations: %v", err)
}
if exists {
t.Errorf("Found expectations, expected none since the ReplicaSet has been deleted.")
}