update go.mod
Some checks failed
build / lint (push) Successful in 19s
build / test (push) Failing after 18s
codeql / analyze (go) (push) Failing after 1m13s

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2024-12-12 10:48:49 +03:00
parent d52e22c187
commit 37e0380939
3 changed files with 27 additions and 18 deletions

View File

@@ -3,7 +3,6 @@ package file
import (
"fmt"
"io"
"io/ioutil"
"os"
"reflect"
@@ -43,7 +42,7 @@ func (w *fileWatcher) run() {
return
}
var buf []byte
buf, err = ioutil.ReadAll(io.LimitReader(fp, MaxFileSize))
buf, err = io.ReadAll(io.LimitReader(fp, MaxFileSize))
if err == nil {
err = w.opts.Codec.Unmarshal(buf, dst)
}