Skip to content

Commit

Permalink
Improve ModelToCodenameCandidatesForApi
Browse files Browse the repository at this point in the history
  • Loading branch information
amo13 committed Oct 17, 2021
1 parent 52d8547 commit 7ca3213
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lookup/lookup.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ func ModelToCodenameCandidatesForApi(model string) ([]string, error) {
return []string{}, err
}

// Do not lookup in the CSV if the yml has an entry
// In that case return this single codename in a slice
if y != "" {
return []string{y}, nil
}

c, err := modelToCodenameCandidatesCsv(model)
if err != nil {
return []string{}, err
Expand Down

0 comments on commit 7ca3213

Please sign in to comment.