diff --git a/pkg/file/readfile.go b/pkg/file/readfile.go index f99ad5d..466f5f1 100644 --- a/pkg/file/readfile.go +++ b/pkg/file/readfile.go @@ -67,7 +67,7 @@ func getContent(filenames []string, mockEnvVars bool) (*Content, error) { func getReaders(fileOrDir string) (map[string]io.Reader, error) { // special case where `-` means stdin if fileOrDir == "-" { - if term.IsTerminal(int(os.Stdin.Fd())) && term.IsTerminal(int(os.Stderr.Fd())) { + if term.IsTerminal(int(os.Stdin.Fd())) && term.IsTerminal(int(os.Stderr.Fd())) { //nolint:gosec fmt.Fprintf(os.Stderr, "reading input from stdin...\n") } return map[string]io.Reader{"STDIN": os.Stdin}, nil diff --git a/tests/integration/test_utils.go b/tests/integration/test_utils.go index 6489cbd..fcfcaac 100644 --- a/tests/integration/test_utils.go +++ b/tests/integration/test_utils.go @@ -22,11 +22,6 @@ import ( "github.com/stretchr/testify/require" ) -func int32p(i int) *int32 { - p := int32(i) - return &p -} - func getKongAddress() string { address := os.Getenv("DECK_KONG_ADDR") if address != "" {