lint
This commit is contained in:
@@ -5,7 +5,7 @@ import (
|
||||
"fmt"
|
||||
"os"
|
||||
"errors"
|
||||
"io/ioutil"
|
||||
"io"
|
||||
"gopkg.in/yaml.v2"
|
||||
log "oc-deploy/log_wrapper"
|
||||
)
|
||||
@@ -21,7 +21,7 @@ func GetFromFile(fileversion string) (string, error) {
|
||||
}
|
||||
defer fin.Close()
|
||||
|
||||
byteValue, err := ioutil.ReadAll(fin)
|
||||
byteValue, err := io.ReadAll(fin)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
@@ -64,7 +64,7 @@ func readLatestFile() (string, error) {
|
||||
}
|
||||
defer fin.Close()
|
||||
|
||||
byteValue, err := ioutil.ReadAll(fin)
|
||||
byteValue, err := io.ReadAll(fin)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
@@ -74,4 +74,4 @@ func readLatestFile() (string, error) {
|
||||
yaml.Unmarshal(byteValue, &objmap)
|
||||
|
||||
return objmap.Version, nil
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user