From d6a50d2bb505732a212dd70e028c641e6ed0c98c Mon Sep 17 00:00:00 2001 From: gurjotkaur20 Date: Wed, 21 Jun 2023 12:26:44 +0530 Subject: [PATCH] fix: return nil from else --- controllers/druid/handler.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controllers/druid/handler.go b/controllers/druid/handler.go index bb29e7d5..bbc7ea4f 100644 --- a/controllers/druid/handler.go +++ b/controllers/druid/handler.go @@ -510,7 +510,7 @@ func deleteOrphanPVC(ctx context.Context, sdk client.Client, drd *v1alpha1.Druid if err != nil { return err } else { - // do nothing + return nil } } } else { @@ -524,7 +524,7 @@ func deleteOrphanPVC(ctx context.Context, sdk client.Client, drd *v1alpha1.Druid if err != nil { return err } else { - // do nothing + return nil } } }