Fix deprecated uses of ioutil

This commit is contained in:
comp500
2023-01-20 18:43:46 +00:00
parent 79d3ed3957
commit 672d22d0dd
6 changed files with 9 additions and 15 deletions

View File

@@ -4,7 +4,6 @@ import (
"errors"
"fmt"
"io"
"io/ioutil"
"os"
"path/filepath"
"sort"
@@ -183,7 +182,7 @@ var ignoreDefaults = []string{
}
func readGitignore(path string) (*gitignore.GitIgnore, bool) {
data, err := ioutil.ReadFile(path)
data, err := os.ReadFile(path)
if err != nil {
// TODO: check for read errors (and present them)
return gitignore.CompileIgnoreLines(ignoreDefaults...), false