diff options
author | silverwind <me@silverwind.io> | 2024-12-15 03:31:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-15 02:31:07 +0000 |
commit | 1cfb718976e2db517da0e76bda835edd9df1fabd (patch) | |
tree | 556f0e895ce6d6f35d57266ea9c51e68c7f89ce6 /modules/log/event_format.go | |
parent | 7616aeb2ea2a02c15480dcd4a232e98081569690 (diff) | |
download | gitea-1cfb718976e2db517da0e76bda835edd9df1fabd.tar.gz gitea-1cfb718976e2db517da0e76bda835edd9df1fabd.zip |
Update golangci-lint to v1.62.2, fix issues (#32845)
Update it and fix new issues related to `redefines-builtin-id`
Diffstat (limited to 'modules/log/event_format.go')
-rw-r--r-- | modules/log/event_format.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/log/event_format.go b/modules/log/event_format.go index d9dbebf831..0b8d1cec79 100644 --- a/modules/log/event_format.go +++ b/modules/log/event_format.go @@ -110,10 +110,10 @@ func EventFormatTextMessage(mode *WriterMode, event *Event, msgFormat string, ms buf = append(buf, ' ') } if flags&(Ltime|Lmicroseconds) != 0 { - hour, min, sec := t.Clock() + hour, minNum, sec := t.Clock() buf = itoa(buf, hour, 2) buf = append(buf, ':') - buf = itoa(buf, min, 2) + buf = itoa(buf, minNum, 2) buf = append(buf, ':') buf = itoa(buf, sec, 2) if flags&Lmicroseconds != 0 { |