Skip to content

Commit b923f75

Browse files
committed
minoe fix for func name
1 parent be65fb6 commit b923f75

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

plugin/driver/driver.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ func (driver *driver) createEndpoint(w http.ResponseWriter, r *http.Request) {
213213
local := vethPair(endID[:5])
214214
if err := netlink.LinkAdd(local); err != nil {
215215
Log.Error(err)
216-
errorResponsef(w, "could not create veth pair")
216+
errorResponse(w, "could not create veth pair")
217217
return
218218
}
219219
link, _ := netlink.LinkByName(local.PeerName)
@@ -313,7 +313,7 @@ func (driver *driver) joinEndpoint(w http.ResponseWriter, r *http.Request) {
313313
}
314314

315315
if netlink.LinkSetUp(local) != nil {
316-
errorResponsef(w, `unable to bring veth up`)
316+
errorResponse(w, "unable to bring veth up")
317317
return
318318
}
319319

plugin/driver/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func sendError(w http.ResponseWriter, msg string, code int) {
3636
http.Error(w, msg, code)
3737
}
3838

39-
func errorResponsef(w http.ResponseWriter, fmtString string, item ...interface{}) {
39+
func errorResponse(w http.ResponseWriter, fmtString string, item ...interface{}) {
4040
json.NewEncoder(w).Encode(map[string]string{
4141
"Err": fmt.Sprintf(fmtString, item...),
4242
})

0 commit comments

Comments
 (0)