Skip to content

Commit

Permalink
Removed unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
ewoutp committed Sep 7, 2018
1 parent db19a9f commit cb84514
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions pkg/deployment/resources/pvc_inspector.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ func (r *Resources) InspectPVCs(ctx context.Context) (util.Interval, error) {
continue
}

updateMemberStatusNeeded := false
if k8sutil.IsPersistentVolumeClaimMarkedForDeletion(&p) {
// Process finalizers
if x, err := r.runPVCFinalizers(ctx, &p, group, memberStatus); err != nil {
Expand All @@ -89,11 +88,6 @@ func (r *Resources) InspectPVCs(ctx context.Context) (util.Interval, error) {
nextInterval = nextInterval.ReduceTo(x)
}
}
if updateMemberStatusNeeded {
if err := status.Members.Update(memberStatus, group); err != nil {
return 0, maskAny(err)
}
}
}

return nextInterval, nil
Expand Down

0 comments on commit cb84514

Please sign in to comment.