Skip to content

Commit

Permalink
minor refactoring
Browse files Browse the repository at this point in the history
Signed-off-by: Arik Hadas <[email protected]>
  • Loading branch information
ahadas committed Feb 11, 2024
1 parent 707c1cc commit c8257c8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pkg/controller/plan/migration.go
Original file line number Diff line number Diff line change
Expand Up @@ -873,10 +873,8 @@ func (r *Migration) execute(vm *plan.VMStatus) (err error) {
}
r.converter = adapter.NewConverter(&r.Context.Destination, r.Log.WithName("converter"), labels)
r.converter.FilterFn = func(pvc *core.PersistentVolumeClaim) bool {
if val, ok := pvc.Annotations[base.AnnRequiresConversion]; ok && val == "true" {
return true
}
return false
val, ok := pvc.Annotations[base.AnnRequiresConversion]
return ok && val == "true"
}
}

Expand Down

0 comments on commit c8257c8

Please sign in to comment.