Skip to content

Commit

Permalink
vrg: return nil on error
Browse files Browse the repository at this point in the history
Signed-off-by: Raghavendra Talur <[email protected]>
  • Loading branch information
raghavendra-talur committed Jan 10, 2025
1 parent 99b6747 commit 01f62e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/controller/vrg_recipe.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func GetPVCSelector(ctx context.Context, reader client.Reader, vrg ramen.VolumeR
) (PvcSelector, error) {
recipeElements, err := RecipeElementsGet(ctx, reader, vrg, ramenConfig, log)
if err != nil {
return recipeElements.PvcSelector, err
return PvcSelector{}, err
}

return recipeElements.PvcSelector, nil
Expand Down

0 comments on commit 01f62e9

Please sign in to comment.