Skip to content

Commit

Permalink
wip: removing else blocks in UpdateGiteaPVC() according GH Actions Va…
Browse files Browse the repository at this point in the history
…lidate.
  • Loading branch information
TristanHoladay committed Dec 19, 2023
1 parent 21a9c7d commit ecf13b2
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/internal/packager/git/gitea.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,15 +261,14 @@ func UpdateGiteaPVC(shouldRollBack bool) (string, error) {
if shouldRollBack {
err = c.K8s.RemoveLabelsAndAnnotations(cluster.ZarfNamespaceName, pvcName, groupKind, labels, annotations)
return "false", err
} else {
if pvcName == "data-zarf-gitea-0" {
err = c.K8s.AddLabelsAndAnnotations(cluster.ZarfNamespaceName, pvcName, groupKind, labels, annotations)
return "true", err
} else {
return "false", err
}
}

if pvcName == "data-zarf-gitea-0" {
err = c.K8s.AddLabelsAndAnnotations(cluster.ZarfNamespaceName, pvcName, groupKind, labels, annotations)
return "true", err
}

return "false", err
}

// DoHTTPThings adds http request boilerplate and perform the request, checking for a successful response.
Expand Down

0 comments on commit ecf13b2

Please sign in to comment.