1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

Simplify parameter types (#18006)

Remove repeated type declarations in function definitions.
This commit is contained in:
Gusted
2021-12-20 05:41:31 +01:00
committed by GitHub
parent 25677cdc5b
commit ff2fd08228
59 changed files with 115 additions and 116 deletions

View File

@@ -80,7 +80,7 @@ func (l *MultiChannelledLogger) Log(skip int, level Level, format string, v ...i
}
// SendLog sends a log event at the provided level with the information given
func (l *MultiChannelledLogger) SendLog(level Level, caller, filename string, line int, msg string, stack string) error {
func (l *MultiChannelledLogger) SendLog(level Level, caller, filename string, line int, msg, stack string) error {
if l.GetLevel() > level {
return nil
}

View File

@@ -73,7 +73,7 @@ func (logger *WriterLogger) GetStacktraceLevel() Level {
}
// Copy of cheap integer to fixed-width decimal to ascii from logger.
func itoa(buf *[]byte, i int, wid int) {
func itoa(buf *[]byte, i, wid int) {
var logger [20]byte
bp := len(logger) - 1
for i >= 10 || wid > 1 {