mirror of
				https://github.com/packwiz/packwiz.git
				synced 2025-10-31 18:44:33 +01:00 
			
		
		
		
	Fix deprecated uses of ioutil
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user