mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-13 01:22:05 -06:00
internal/plugin: deprecate io/ioutil (#347)
Signed-off-by: jay-dee7 <me@jsdp.dev>
This commit is contained in:
parent
bc28cc35cc
commit
fa8b9d1fff
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user