mirror of
https://github.com/komodorio/helm-dashboard.git
synced 2026-03-24 11:48:04 +00:00
Fix linter errors after go 1.20
This commit is contained in:
@@ -3,7 +3,6 @@ package utils
|
||||
import (
|
||||
"bytes"
|
||||
"errors"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"os/exec"
|
||||
"regexp"
|
||||
@@ -34,12 +33,12 @@ func ChartAndVersion(x string) (string, string, error) {
|
||||
}
|
||||
|
||||
func TempFile(txt string) (string, func(), error) {
|
||||
file, err := ioutil.TempFile("", "helm_dahsboard_*.yaml")
|
||||
file, err := os.CreateTemp("", "helm_dahsboard_*.yaml")
|
||||
if err != nil {
|
||||
return "", nil, err
|
||||
}
|
||||
|
||||
err = ioutil.WriteFile(file.Name(), []byte(txt), 0600)
|
||||
err = os.WriteFile(file.Name(), []byte(txt), 0600)
|
||||
if err != nil {
|
||||
return "", nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user