Skip to content

Commit

Permalink
Remove unecessary changes
Browse files Browse the repository at this point in the history
Signed-off-by: Dimitris Karakasilis <[email protected]>
  • Loading branch information
jimmykarily committed Sep 3, 2024
1 parent 88c1e93 commit 8bf8fd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/config/spec.go
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,6 @@ func NewUpgradeSpec(cfg *Config) (*v1.UpgradeSpec, error) {
if err != nil {
return nil, fmt.Errorf("failed calculating size: %w", err)
}

return spec, nil
}

Expand All @@ -373,6 +372,7 @@ func setUpgradeSourceSize(cfg *Config, spec *v1.UpgradeSpec) error {
if targetSpec.Source != nil && targetSpec.Source.IsEmpty() {
return nil
}

size, err = GetSourceSize(cfg, targetSpec.Source)
if err != nil {
return err
Expand Down

0 comments on commit 8bf8fd8

Please sign in to comment.