summaryrefslogtreecommitdiffstats
path: root/modules/log/file.go
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2023-04-20 04:08:01 +0200
committerGitHub <noreply@github.com>2023-04-19 22:08:01 -0400
commit938b59199480d1b3730388982eb87d592e976849 (patch)
treefcbbeea0c67dca1cda1ef87a6b3c0748105a8610 /modules/log/file.go
parent594efb9b669fb12e8a0306f76c740fa72c1a80f1 (diff)
downloadgitea-938b59199480d1b3730388982eb87d592e976849.tar.gz
gitea-938b59199480d1b3730388982eb87d592e976849.zip
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.
Diffstat (limited to 'modules/log/file.go')
-rw-r--r--modules/log/file.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/log/file.go b/modules/log/file.go
index 16fe26f84d..55147ffac8 100644
--- a/modules/log/file.go
+++ b/modules/log/file.go
@@ -181,7 +181,7 @@ func (log *FileLogger) DoRotate() error {
}
if log.Compress {
- go compressOldLogFile(fname, log.CompressionLevel)
+ go compressOldLogFile(fname, log.CompressionLevel) //nolint:errcheck
}
// re-start logger
@@ -216,7 +216,7 @@ func compressOldLogFile(fname string, compressionLevel int) error {
if err != nil {
zw.Close()
fw.Close()
- util.Remove(fname + ".gz")
+ util.Remove(fname + ".gz") //nolint:errcheck
return err
}
reader.Close()