Fix linter issues

Fix all new linter issues that are raised by golanglint-ci 1.56
This commit is contained in:
Nicholas Thompson
2024-02-19 20:08:46 +02:00
parent 86d865ce1b
commit fa6fc5fb34
3 changed files with 4 additions and 4 deletions

View File

@@ -63,7 +63,7 @@ func NewMunin(mk2 mk2driver.Mk2) *Munin {
return m
}
func (m *Munin) ServeMuninHTTP(rw http.ResponseWriter, r *http.Request) {
func (m *Munin) ServeMuninHTTP(rw http.ResponseWriter, _ *http.Request) {
muninDat := <-m.muninResponse
if muninDat.timesUpdated == 0 {
log.Error("No data returned")
@@ -103,7 +103,7 @@ func (m *Munin) ServeMuninHTTP(rw http.ResponseWriter, r *http.Request) {
}
}
func (m *Munin) ServeMuninConfigHTTP(rw http.ResponseWriter, r *http.Request) {
func (m *Munin) ServeMuninConfigHTTP(rw http.ResponseWriter, _ *http.Request) {
output := muninConfig
_, err := rw.Write([]byte(output))
if err != nil {