Some fixes suggested by golangci-lint
This commit is contained in:
@@ -8,7 +8,6 @@ import (
|
||||
|
||||
// ListRoutes queries the kapow! instance for the routes that are registered
|
||||
func ListRoutes(host string, w io.Writer) error {
|
||||
|
||||
url := host + "/routes/"
|
||||
return http.Get(url, "", nil, w)
|
||||
}
|
||||
|
||||
@@ -6,7 +6,6 @@ import (
|
||||
|
||||
// RemoveRoute removes a registered route in Kapow! server
|
||||
func RemoveRoute(host, id string) error {
|
||||
|
||||
url := host + "/routes/" + id
|
||||
return http.Delete(url, "", nil, nil)
|
||||
}
|
||||
|
||||
@@ -7,7 +7,6 @@ import (
|
||||
)
|
||||
|
||||
func SetData(host, handlerID, path string, r io.Reader) error {
|
||||
|
||||
url := host + "/handlers/" + handlerID + path
|
||||
return http.Put(url, "", r, nil)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user