Skip to content

Commit

Permalink
Merge pull request #3504 from ActiveState/DX-3072
Browse files Browse the repository at this point in the history
Fix nil pointer panic
  • Loading branch information
Naatan authored Sep 24, 2024
2 parents 948ebeb + bfedd74 commit bc69a84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion internal/assets/contents/shells/zshrc_global.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export {{$K}}="{{$V}}:$PATH"
{{- else}}
export {{$K}}="{{$V}}"
{{- end}}
{{- end}}
{{- end}}
6 changes: 1 addition & 5 deletions pkg/buildplan/artifact.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,7 @@ func (a Artifacts) ToIDSlice() []strfmt.UUID {
func (a Artifacts) ToNameMap() ArtifactNameMap {
result := make(map[string]*Artifact, len(a))
for _, a := range a {
name := a.DisplayName
if len(a.Ingredients) == 0 {
name = a.Ingredients[0].Name
}
result[name] = a
result[a.Name()] = a
}
return result
}
Expand Down

0 comments on commit bc69a84

Please sign in to comment.