Skip to content

Commit

Permalink
Remove deprecated ioutil usage
Browse files Browse the repository at this point in the history
Signed-off-by: Chad Wilson <[email protected]>
  • Loading branch information
chadlwilson committed Mar 31, 2024
1 parent cb874d3 commit 0dcfa32
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions build/make.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import (
"flag"
"fmt"
"io"
"io/ioutil"
"log"
"os"
"os/exec"
Expand Down Expand Up @@ -327,7 +326,7 @@ var (
)

func getPluginProperties(jsonPropertiesFile string) (map[string]interface{}, error) {
pluginPropertiesJson, err := ioutil.ReadFile(jsonPropertiesFile)
pluginPropertiesJson, err := os.ReadFile(jsonPropertiesFile)
if err != nil {
fmt.Printf("Could not read %s: %s\n", filepath.Base(jsonPropertiesFile), err)
return nil, err
Expand Down

0 comments on commit 0dcfa32

Please sign in to comment.