Fix revive lint issues (#2730)

This commit is contained in:
Javier Adriel
2023-03-22 15:06:04 -06:00
committed by GitHub
parent a6d8f6beaa
commit ceafdb9cb4
21 changed files with 126 additions and 134 deletions

View File

@@ -164,7 +164,7 @@ func (i infoMsg) json(msg string, args ...interface{}) {
fmt.Println(string(logJSON))
}
func (i infoMsg) quiet(msg string, args ...interface{}) {
func (i infoMsg) quiet(_ string, _ ...interface{}) {
}
func (i infoMsg) pretty(msg string, args ...interface{}) {

View File

@@ -24,7 +24,7 @@ import (
"testing"
)
func testServer(w http.ResponseWriter, r *http.Request) {
func testServer(_ http.ResponseWriter, _ *http.Request) {
}
func TestInitializeLogger(t *testing.T) {

View File

@@ -194,7 +194,7 @@ func New(config Config) *Target {
}
// Send log message 'e' to http target.
func (h *Target) Send(entry interface{}, errKind string) error {
func (h *Target) Send(entry interface{}, _ string) error {
if atomic.LoadInt32(&h.status) == 0 {
// Channel was closed or used before init.
return nil