Skip to content

Commit

Permalink
fix: linter
Browse files Browse the repository at this point in the history
Signed-off-by: Vishal Choudhary <[email protected]>
  • Loading branch information
vishal-chdhry committed Sep 16, 2024
1 parent 94fd5f9 commit d52d2b0
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions pkg/server/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,19 +188,19 @@ func (c Config) migration(store storage.Interface) error {
if err != nil {
klog.Error(err)
}
case watch.Deleted:
// cpolr := event.Object.(*v1alpha2.ClusterPolicyReport)
// if cpolr.Annotations != nil {
// if _, ok := cpolr.Annotations[api.ServedByReportsServerAnnotation]; ok {
// return
// case watch.Deleted:
// cpolr := event.Object.(*v1alpha2.ClusterPolicyReport)
// if cpolr.Annotations != nil {
// if _, ok := cpolr.Annotations[api.ServedByReportsServerAnnotation]; ok {
// return
// }
// } else {
// cpolr.Annotations = make(map[string]string)
// }
// err := store.ClusterPolicyReports().Delete(context.TODO(), cpolr.Name)
// if err != nil {
// klog.Error(err)
// }
// } else {
// cpolr.Annotations = make(map[string]string)
// }
// err := store.ClusterPolicyReports().Delete(context.TODO(), cpolr.Name)
// if err != nil {
// klog.Error(err)
// }
}
}
}()
Expand Down

0 comments on commit d52d2b0

Please sign in to comment.