Skip to content

Commit

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

0 comments on commit 23ed387

Please sign in to comment.