Skip to content

Commit

Permalink
Fix govet errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dangra committed Jan 25, 2023
1 parent d6a38fb commit 207b811
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ func (chk *ToplevelCheck) toMachineCheck() (*api.MachineCheck, error) {
return api.MachineHTTPHeader{Name: k, Values: []string{v}}
})
default:
return nil, fmt.Errorf("error unknown check type: %s", chk.Type)
return nil, fmt.Errorf("error unknown check type: %s", *chk.Type)
}
}
return res, nil
Expand All @@ -234,7 +234,7 @@ func (chk *ToplevelCheck) String() string {
case "tcp":
return fmt.Sprintf("tcp-%d", chk.Port)
case "http":
return fmt.Sprintf("http-%d-%s", chk.Port, chk.HTTPMethod)
return fmt.Sprintf("http-%d-%v", chk.Port, chk.HTTPMethod)
default:
return fmt.Sprintf("%s-%d", chkType, chk.Port)
}
Expand All @@ -258,7 +258,7 @@ func (chk *ServiceHTTPCheck) toMachineCheck() *api.MachineCheck {
}

func (chk *ServiceHTTPCheck) String(port int) string {
return fmt.Sprintf("http-%d-%s", port, chk.HTTPMethod)
return fmt.Sprintf("http-%d-%v", port, chk.HTTPMethod)
}

func (chk *ServiceTCPCheck) toMachineCheck() *api.MachineCheck {
Expand Down

0 comments on commit 207b811

Please sign in to comment.