This commit is contained in:
davidnewhall2 2019-12-30 16:26:48 -08:00
parent a4809d8371
commit ed3b895284
2 changed files with 2 additions and 2 deletions

View File

@ -7,5 +7,5 @@ before_install:
install:
- go mod download
script:
- golangci-lint run --enable-all -D gochecknoinits -D funlen
- golangci-lint run --enable-all -D gochecknoinits -D funlen -e gomnd
- go test ./...

View File

@ -165,7 +165,7 @@ func (u *promUnifi) ScrapeHandler(w http.ResponseWriter, r *http.Request) {
}
func (u *promUnifi) DefaultHandler(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(200)
w.WriteHeader(http.StatusOK)
_, _ = w.Write([]byte(poller.AppName + "\n"))
}