Skip to content

Commit

Permalink
Removes inneffectual nolint directive
Browse files Browse the repository at this point in the history
  • Loading branch information
rspurgeon committed Sep 11, 2024
1 parent 861a190 commit ec4b0c8
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 ec4b0c8

Please sign in to comment.