Skip to content

Commit

Permalink
More tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit91 committed Oct 2, 2023
1 parent 7e557f3 commit a203d19
Show file tree
Hide file tree
Showing 2 changed files with 200 additions and 154 deletions.
6 changes: 3 additions & 3 deletions cmd/metal-api/internal/issues/issues.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func AllIssues() Issues {
var res Issues

for _, t := range AllIssueTypes() {
i, err := newIssueFromType(t)
i, err := NewIssueFromType(t)
if err != nil {
continue
}
Expand Down Expand Up @@ -97,7 +97,7 @@ func FindIssues(c *IssueConfig) (MachineIssues, error) {
for _, m := range c.Machines {
m := m

i, err := newIssueFromType(t)
i, err := NewIssueFromType(t)
if err != nil {
return nil, err
}
Expand Down Expand Up @@ -134,7 +134,7 @@ func (mis MachineIssues) Get(id string) *MachineWithIssues {
}

func (c *IssueConfig) includeIssue(t IssueType) bool {
issue, err := newIssueFromType(t)
issue, err := NewIssueFromType(t)
if err != nil {
return false
}
Expand Down
Loading

0 comments on commit a203d19

Please sign in to comment.