From b77742f761a8f7407de7728e9be46ff6a1c3db95 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Thu, 12 Dec 2024 10:49:56 +0300 Subject: [PATCH] fix lint Signed-off-by: Vasiliy Tolstov --- watcher.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/watcher.go b/watcher.go index 592e4cf..4814f77 100644 --- a/watcher.go +++ b/watcher.go @@ -3,7 +3,6 @@ package file import ( "fmt" "io" - "io/ioutil" "os" "reflect" @@ -44,7 +43,7 @@ func (w *fileWatcher) run() { return } var buf []byte - buf, err = ioutil.ReadAll(io.LimitReader(fp, int64(codec.DefaultMaxMsgSize))) + buf, err = io.ReadAll(io.LimitReader(fp, int64(codec.DefaultMaxMsgSize))) if err == nil { err = w.opts.Codec.Unmarshal(buf, dst) }