Skip to content

Commit

Permalink
fix: remove comment
Browse files Browse the repository at this point in the history
  • Loading branch information
plyr4 committed Nov 15, 2023
1 parent 808914c commit b1e2edf
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions api/build/graph.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,19 +230,6 @@ func GetBuildGraph(c *gin.Context) {
return
}

if err != nil {
// format the error message with extra information
err = fmt.Errorf("unable to compile pipeline configuration for %s: %w", r.GetFullName(), err)

logger.Error(err.Error())

retErr := fmt.Errorf("%s: %w", baseErr, err)

util.HandleError(c, http.StatusInternalServerError, retErr)

return
}

if p == nil {
retErr := fmt.Errorf("unable to compile pipeline configuration for %s: pipeline is nil", r.GetFullName())

Expand Down Expand Up @@ -481,7 +468,7 @@ func GetBuildGraph(c *gin.Context) {

// create single-step stages when no stages exist
if len(p.Stages) == 0 {
// sort them by number
// sort steps by number
sort.Slice(steps, func(i, j int) bool {
return steps[i].GetNumber() < steps[j].GetNumber()
})
Expand All @@ -493,7 +480,6 @@ func GetBuildGraph(c *gin.Context) {
Needs: []string{},
}

// skip steps/stages that were not present in the build
s, ok := stageMap[stage.Name]
if !ok {
continue
Expand Down

0 comments on commit b1e2edf

Please sign in to comment.