refactor: remove ioutil module usage

Signed-off-by: Adphi <philippe.adrien.nousse@gmail.com>
This commit is contained in:
2023-03-11 12:27:30 +01:00
parent 291c4f6361
commit 82d04d63b6
5 changed files with 11 additions and 14 deletions

View File

@ -4,7 +4,6 @@ package file
import (
"context"
"io/ioutil"
"os"
"path/filepath"
"sync"
@ -27,7 +26,7 @@ type file struct {
}
func (c *file) Read() ([]byte, error) {
return ioutil.ReadFile(c.path)
return os.ReadFile(c.path)
}
// Watch listen for config changes and send updated content to the updates channel