Skip to content

Commit

Permalink
Remove unused nolint:gosec
Browse files Browse the repository at this point in the history
  • Loading branch information
mheap committed Sep 13, 2024
1 parent f6c2793 commit 89c89e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/file/readfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())) { //nolint:gosec
if term.IsTerminal(int(os.Stdin.Fd())) && term.IsTerminal(int(os.Stderr.Fd())) {
fmt.Fprintf(os.Stderr, "reading input from stdin...\n")
}
return map[string]io.Reader{"STDIN": os.Stdin}, nil
Expand Down

0 comments on commit 89c89e6

Please sign in to comment.