style: fix goland warnings for unused parameters

This commit is contained in:
Martin Riedl 2025-03-04 20:56:30 +01:00
parent eb8b9abe1a
commit a1c991bcbd
Signed by: martinr92
GPG key ID: FB68DA65516A804C
2 changed files with 2 additions and 2 deletions

View file

@ -65,7 +65,7 @@ func (formatter *FormatterJSON) Process(entry *Entry) {
} }
} }
func (formatter *FormatterJSON) End(entry *Entry) []byte { func (formatter *FormatterJSON) End(_ *Entry) []byte {
// build JSON // build JSON
data, err := json.Marshal(formatter.data) data, err := json.Marshal(formatter.data)
if err != nil { if err != nil {

View file

@ -82,7 +82,7 @@ func (formatter *FormatterKeyValue) addKV(key string, value any) {
formatter.builder.WriteString(val) formatter.builder.WriteString(val)
} }
func (formatter *FormatterKeyValue) End(entry *Entry) []byte { func (formatter *FormatterKeyValue) End(_ *Entry) []byte {
// send data // send data
return []byte(formatter.builder.String()) return []byte(formatter.builder.String())
} }