all: Unused args, retvals, assignments (#7926)

This commit is contained in:
greatroar
2021-09-08 00:11:16 +02:00
committed by GitHub
parent 13196ddd92
commit 7fa141ea39
10 changed files with 52 additions and 50 deletions
+2 -2
View File
@@ -54,7 +54,7 @@ func indexDumpOutput(url string) cli.ActionFunc {
if err != nil {
return err
}
return prettyPrintResponse(c, response)
return prettyPrintResponse(response)
}
}
@@ -130,7 +130,7 @@ func prettyPrintJSON(data interface{}) error {
return enc.Encode(data)
}
func prettyPrintResponse(c *cli.Context, response *http.Response) error {
func prettyPrintResponse(response *http.Response) error {
bytes, err := responseToBArray(response)
if err != nil {
return err