forked from kevadesu/forgejo
Remove most path-based golangci exclusions (#24214)
They are non-obvious and do not survive refactor. Will replace with `//nolint` comments after CI results are in.
This commit is contained in:
parent
594efb9b66
commit
938b591994
12 changed files with 29 additions and 80 deletions
|
@ -245,7 +245,7 @@ func Close() {
|
|||
func Log(skip int, level Level, format string, v ...interface{}) {
|
||||
l, ok := NamedLoggers.Load(DEFAULT)
|
||||
if ok {
|
||||
l.Log(skip+1, level, format, v...)
|
||||
l.Log(skip+1, level, format, v...) //nolint:errcheck
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -273,7 +273,7 @@ func (l *LoggerAsWriter) Write(p []byte) (int, error) {
|
|||
for _, logger := range l.ourLoggers {
|
||||
// Skip = 3 because this presumes that we have been called by log.Println()
|
||||
// If the caller has used log.Output or the like this will be wrong
|
||||
logger.Log(3, l.level, string(p))
|
||||
logger.Log(3, l.level, string(p)) //nolint:errcheck
|
||||
}
|
||||
return len(p), nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue