mirror of
https://github.com/vmware-tanzu/pinniped.git
synced 2026-09-09 09:36:15 +00:00
upgrade linter to 2.13.1
Signed-off-by: Ryan Richard <richardry@vmware.com>
This commit is contained in:
@@ -77,7 +77,6 @@ const (
|
||||
|
||||
// stdin returns the file descriptor for stdin as an int.
|
||||
func stdin() int {
|
||||
//nolint:gosec // casting like this is the documented way to pass file descriptors to the term package
|
||||
return int(os.Stdin.Fd())
|
||||
}
|
||||
|
||||
|
||||
@@ -325,7 +325,6 @@ func TestLogin(t *testing.T) { //nolint:gocyclo
|
||||
http.Error(w, "unexpected method", http.StatusMethodNotAllowed)
|
||||
return
|
||||
}
|
||||
//nolint:gosec // this is a test, so we don't care about limiting request body size
|
||||
if err := r.ParseForm(); err != nil {
|
||||
http.Error(w, err.Error(), http.StatusBadRequest)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user