build: bump golangci-lint to 2.1.6

This commit is contained in:
Oleksandr Redko authored and Henrique Dias committed 2025-06-27 07:56:15 +02:00
1 parent da03728cd7
commit 1d494ff315
15 files changed
+515 -436

No files matched your search

+2 -2
View File
@@ -73,7 +73,7 @@ func dbExists(path string) (bool, error) {
d := filepath.Dir(path)
_, err = os.Stat(d)
if os.IsNotExist(err) {
if err := os.MkdirAll(d, 0700); err != nil { //nolint:govet,gomnd
if err := os.MkdirAll(d, 0700); err != nil { //nolint:govet,mnd
return false, err
}
return false, nil
@@ -121,7 +121,7 @@ func marshal(filename string, data interface{}) error {
defer fd.Close()
switch ext := filepath.Ext(filename); ext {
case ".json":
case ".json": //nolint:goconst
encoder := json.NewEncoder(fd)
encoder.SetIndent("", " ")
return encoder.Encode(data)