Adds ineffassign to GO linter script.
Changes: - Enables ineffassign check in the verify scripts. - Fixes lint errs.
This commit is contained in:
@@ -1285,11 +1285,6 @@ func TestAPICRDProtobuf(t *testing.T) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
rv, _ := strconv.Atoi(obj.GetResourceVersion())
|
||||
if rv < 1 {
|
||||
rv = 1
|
||||
}
|
||||
|
||||
w, err := client.Get().
|
||||
Resource(resource).NamespaceIfScoped(obj.GetNamespace(), len(obj.GetNamespace()) > 0).Name(obj.GetName()).SubResource(tc.subresource).
|
||||
SetHeader("Accept", tc.accept).
|
||||
|
Reference in New Issue
Block a user