multi: update linter, fix issues

This commit is contained in:
Oliver Gugger 2023-09-28 13:16:01 +02:00
parent bac1416636
commit 08026dab93
No known key found for this signature in database
GPG key ID: 8E4256593F177720
25 changed files with 525 additions and 346 deletions

View file

@ -25,8 +25,8 @@ func (s *PrefixLog) Infof(format string, params ...interface{}) {
)
}
// Warnf formats message according to format specifier and writes to
// to log with LevelError.
// Warnf formats message according to format specifier and writes to log with
// LevelError.
func (s *PrefixLog) Warnf(format string, params ...interface{}) {
s.Logger.Warnf(
fmt.Sprintf("%v %s", ShortHash(&s.Hash), format),
@ -34,8 +34,8 @@ func (s *PrefixLog) Warnf(format string, params ...interface{}) {
)
}
// Errorf formats message according to format specifier and writes to
// to log with LevelError.
// Errorf formats message according to format specifier and writes to log with
// LevelError.
func (s *PrefixLog) Errorf(format string, params ...interface{}) {
s.Logger.Errorf(
fmt.Sprintf("%v %s", ShortHash(&s.Hash), format),