Skip to content

Commit

Permalink
#226 Isolate lint error - 2
Browse files Browse the repository at this point in the history
  • Loading branch information
docktermj committed Aug 22, 2024
1 parent c1069b9 commit 372382b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions parametertests/parametertests_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func captureStdout(functionName func() error) (string, error) {
return "", err
}
readFile, writeFile, _ := os.Pipe()
fileDescriptor := int(writeFile.Fd())
fileDescriptor := int(writeFile.Fd()) //nolint:gosec
err = syscall.Dup2(fileDescriptor, syscall.Stdout)
if err != nil {
return "", err
Expand Down Expand Up @@ -81,7 +81,7 @@ func captureStdoutReturningInt64(functionName func() (int64, error)) (string, in
return "", 0, err
}
readFile, writeFile, _ := os.Pipe()
fileDescriptor := int(writeFile.Fd())
fileDescriptor := int(writeFile.Fd()) //nolint:gosec
err = syscall.Dup2(fileDescriptor, syscall.Stdout)
if err != nil {
return "", 0, err
Expand Down Expand Up @@ -116,7 +116,7 @@ func captureStdoutReturningString(functionName func() (string, error)) (string,
return "", "", err
}
readFile, writeFile, _ := os.Pipe()
fileDescriptor := int(writeFile.Fd())
fileDescriptor := int(writeFile.Fd()) //nolint:gosec
err = syscall.Dup2(fileDescriptor, syscall.Stdout)
if err != nil {
return "", "", err
Expand Down

0 comments on commit 372382b

Please sign in to comment.