build: bump golangci-lint to 2.1.6

This commit is contained in:
Oleksandr Redko
2025-06-26 21:18:20 +03:00
committed by Henrique Dias
parent da03728cd7
commit 1d494ff315
15 changed files with 515 additions and 436 deletions

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)