mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-08 05:27:52 +00:00
Update helper.go
This commit is contained in:
@@ -5,7 +5,6 @@ import (
|
|||||||
"crypto/sha256"
|
"crypto/sha256"
|
||||||
"encoding/base64"
|
"encoding/base64"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io/ioutil"
|
|
||||||
"os"
|
"os"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
"path"
|
"path"
|
||||||
@@ -249,7 +248,7 @@ func AppendAPIEndpoint(address string) string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func ReadFileAsString(filePath string) (string, error) {
|
func ReadFileAsString(filePath string) (string, error) {
|
||||||
fileBytes, err := ioutil.ReadFile(filePath)
|
fileBytes, err := os.ReadFile(filePath)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
|
|||||||
Reference in New Issue
Block a user