1
0
Fork 0
mirror of https://github.com/arangodb/kube-arangodb.git synced 2024-12-15 17:51:03 +00:00

Removed unused code

This commit is contained in:
Ewout Prangsma 2018-09-07 14:38:37 +02:00
parent db19a9fc00
commit cb84514137
No known key found for this signature in database
GPG key ID: 4DBAD380D93D0698

View file

@ -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 {
@ -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