chore: make as exception to mnd

This commit is contained in:
Henrique Dias 2025-06-27 08:15:39 +02:00
parent 8230eb7ab5
commit ae4fb0ea25
8 changed files with 19 additions and 13 deletions

View file

@ -37,11 +37,11 @@ func (f *FileCache) Store(_ context.Context, key string, value []byte) error {
defer mu.Unlock()
fileName := f.getFileName(key)
if err := f.fs.MkdirAll(filepath.Dir(fileName), 0700); err != nil { //nolint:mnd
if err := f.fs.MkdirAll(filepath.Dir(fileName), 0700); err != nil {
return err
}
if err := afero.WriteFile(f.fs, fileName, value, 0700); err != nil { //nolint:mnd
if err := afero.WriteFile(f.fs, fileName, value, 0700); err != nil {
return err
}