Skip to content

Commit

Permalink
fix: fix linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
fust committed Nov 5, 2024
1 parent eb25341 commit cf857d8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 1 addition & 2 deletions internal/infoblox/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func ToHostResponseMap(res []ibclient.HostRecord) *ResponseMap {

func ToPTRResponseMap(res []ibclient.RecordPTR) *ResponseMap {
rm := &ResponseMap{
Map: make(map[string]ResponseDetails),
Map: make(map[string]ResponseDetails),
RecordType: ibclient.PtrRecord,
}
for _, record := range res {
Expand Down Expand Up @@ -134,4 +134,3 @@ func (rm *ResponseMap) ToEndpoints() []*endpoint.Endpoint {
}
return endpoints
}

4 changes: 4 additions & 0 deletions pkg/webhook/webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,11 @@ func (p *Webhook) headerCheck(isContentType bool, w http.ResponseWriter, r *http
} else {
msg += "an accept header"
}
<<<<<<< HEAD
err := errors.New(msg)
=======
err := fmt.Errorf("%s", msg)
>>>>>>> 61d5f4c (fix: fix linter errors)

_, writeErr := fmt.Fprint(w, err.Error())
if writeErr != nil {
Expand Down

0 comments on commit cf857d8

Please sign in to comment.