internal/plugin: deprecate io/ioutil (#347)

Signed-off-by: jay-dee7 <me@jsdp.dev>
This commit is contained in:
Jasdeep Singh 2023-09-08 15:29:16 +05:30 committed by GitHub
parent bc28cc35cc
commit fa8b9d1fff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,7 +4,6 @@
package discovery
import (
"io/ioutil"
"log"
"os"
"path/filepath"
@ -51,7 +50,7 @@ func findPluginPaths(kind string, dirs []string) []string {
ret := make([]string, 0, len(dirs))
for _, dir := range dirs {
items, err := ioutil.ReadDir(dir)
items, err := os.ReadDir(dir)
if err != nil {
// Ignore missing dirs, non-dirs, etc
continue