Add suggestion to storage interface Delete method

This commit is contained in:
wojtekt
2020-11-03 13:21:00 +01:00
parent e1c617a88e
commit c2d61896f4
12 changed files with 37 additions and 26 deletions

View File

@@ -159,7 +159,7 @@ type FailDeletionStorage struct {
Called *bool
}
func (f FailDeletionStorage) Delete(ctx context.Context, key string, out runtime.Object, precondition *apiserverstorage.Preconditions, _ apiserverstorage.ValidateObjectFunc) error {
func (f FailDeletionStorage) Delete(_ context.Context, key string, _ runtime.Object, _ *apiserverstorage.Preconditions, _ apiserverstorage.ValidateObjectFunc, _ runtime.Object) error {
*f.Called = true
return apiserverstorage.NewKeyNotFoundError(key, 0)
}