Revert "Fix for gosec rule G304 - sanitize filepaths"

This reverts commit ffb6cbf769.
This commit is contained in:
Mike Farah
2021-07-08 10:14:01 +10:00
parent 90708c010c
commit 38ce8618e1
3 changed files with 3 additions and 6 deletions
+1 -2
View File
@@ -5,7 +5,6 @@ import (
"fmt"
"io/ioutil"
"os"
"path/filepath"
"reflect"
"strings"
"testing"
@@ -82,7 +81,7 @@ func WriteTempYamlFile(content string) string {
}
func ReadTempYamlFile(name string) string {
content, _ := ioutil.ReadFile(filepath.Clean(name))
content, _ := ioutil.ReadFile(name)
return string(content)
}