Skip to content

Commit

Permalink
lint: running linter
Browse files Browse the repository at this point in the history
  • Loading branch information
gvicentin committed Aug 12, 2024
1 parent 18020b0 commit 3475fac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,6 @@ func (a *RouterAPI) removeCertificate(w http.ResponseWriter, r *http.Request) er
return err
}


// issueCertManagerCert Issues certificate for the app
func (a *RouterAPI) issueCertManagerCert(_ http.ResponseWriter, r *http.Request) error {
ctx := r.Context()
Expand All @@ -339,7 +338,7 @@ func (a *RouterAPI) issueCertManagerCert(_ http.ResponseWriter, r *http.Request)
if !ok {
return httpError{
Status: http.StatusNotFound,
Body: fmt.Sprintf("Router %s doesn't have cert-manager support", vars["mode"]),
Body: fmt.Sprintf("Router %s doesn't have cert-manager support", vars["mode"]),
}
}

Expand All @@ -364,7 +363,7 @@ func (a *RouterAPI) removeCertManagerCert(_ http.ResponseWriter, r *http.Request
if !ok {
return httpError{
Status: http.StatusNotFound,
Body: fmt.Sprintf("Router %s doesn't have cert-manager support", vars["mode"]),
Body: fmt.Sprintf("Router %s doesn't have cert-manager support", vars["mode"]),
}
}

Expand Down
2 changes: 1 addition & 1 deletion router/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ type EnsureBackendOpts struct {
Opts Opts `json:"opts"`
CNames []string `json:"cnames"`
Prefixes []BackendPrefix `json:"prefixes"`
Team string `json:"team,omitempty"`
Team string `json:"team,omitempty"`

PreserveOldCNames bool `json:"preserveOldCNames,omitempty"`
}
Expand Down

0 comments on commit 3475fac

Please sign in to comment.