Skip to content

Commit

Permalink
update deprecated code
Browse files Browse the repository at this point in the history
  • Loading branch information
CameronRP committed Sep 25, 2024
1 parent 83be658 commit bf01c99
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions uploadjob.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"bufio"
"encoding/json"
"fmt"
"io/ioutil"
"os"
"os/exec"
"path/filepath"
Expand Down Expand Up @@ -271,7 +270,7 @@ type metadata map[string]interface{}

func loadMeta(filename string) (metadata, error) {
var meta metadata
byteValue, err := ioutil.ReadFile(filename)
byteValue, err := os.ReadFile(filename)
if err != nil {
return meta, err
}
Expand Down

0 comments on commit bf01c99

Please sign in to comment.