From 087c81ebe0c52c38d5e6006f2d761ba87b477b74 Mon Sep 17 00:00:00 2001 From: Neng Lu Date: Mon, 24 Jun 2024 15:20:42 -0700 Subject: [PATCH] fix lint --- pkg/admin/dummy.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pkg/admin/dummy.go b/pkg/admin/dummy.go index 5ab88217..98cb8a04 100644 --- a/pkg/admin/dummy.go +++ b/pkg/admin/dummy.go @@ -130,41 +130,41 @@ func (d *DummyPulsarAdmin) CheckClusterExist(string) (bool, error) { } // DeletePulsarPackage is a fake implements of DeletePulsarPackage -func (d *DummyPulsarAdmin) DeletePulsarPackage(packageURL string) error { +func (d *DummyPulsarAdmin) DeletePulsarPackage(_ string) error { return nil } // ApplyPulsarPackage is a fake implements of ApplyPulsarPackage -func (d *DummyPulsarAdmin) ApplyPulsarPackage(packageURL, filePath, description, contact string, properties map[string]string, changed bool) error { +func (d *DummyPulsarAdmin) ApplyPulsarPackage(_, _, _, _ string, _ map[string]string, _ bool) error { return nil } // DeletePulsarFunction is a fake implements of DeletePulsarFunction -func (d *DummyPulsarAdmin) DeletePulsarFunction(tenant, namespace, name string) error { +func (d *DummyPulsarAdmin) DeletePulsarFunction(_, _, _ string) error { return nil } // ApplyPulsarFunction is a fake implements of ApplyPulsarFunction -func (d *DummyPulsarAdmin) ApplyPulsarFunction(tenant, namespace, name, packageURL string, param *v1alpha1.PulsarFunctionSpec, changed bool) error { +func (d *DummyPulsarAdmin) ApplyPulsarFunction(_, _, _, _ string, _ *v1alpha1.PulsarFunctionSpec, _ bool) error { return nil } // DeletePulsarSink is a fake implements of DeletePulsarSink -func (d *DummyPulsarAdmin) DeletePulsarSink(tenant, namespace, name string) error { +func (d *DummyPulsarAdmin) DeletePulsarSink(_, _, _ string) error { return nil } // ApplyPulsarSink is a fake implements of ApplyPulsarSink -func (d *DummyPulsarAdmin) ApplyPulsarSink(tenant, namespace, name, packageURL string, param *v1alpha1.PulsarSinkSpec, changed bool) error { +func (d *DummyPulsarAdmin) ApplyPulsarSink(_, _, _, _ string, _ *v1alpha1.PulsarSinkSpec, _ bool) error { return nil } // DeletePulsarSource is a fake implements of DeletePulsarSource -func (d *DummyPulsarAdmin) DeletePulsarSource(tenant, namespace, name string) error { +func (d *DummyPulsarAdmin) DeletePulsarSource(_, _, _ string) error { return nil } // ApplyPulsarSource is a fake implements of ApplyPulsarSource -func (d *DummyPulsarAdmin) ApplyPulsarSource(tenant, namespace, name, packageURL string, param *v1alpha1.PulsarSourceSpec, changed bool) error { +func (d *DummyPulsarAdmin) ApplyPulsarSource(_, _, _, _ string, _ *v1alpha1.PulsarSourceSpec, _ bool) error { return nil }