Skip to content

Commit

Permalink
fix: return nil from else
Browse files Browse the repository at this point in the history
  • Loading branch information
gurjotkaur20 committed Jun 21, 2023
1 parent 7212552 commit d6a50d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controllers/druid/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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
}
}
}
Expand Down

0 comments on commit d6a50d2

Please sign in to comment.