Fix new golangci-lint v2 linter issues

This commit is contained in:
Herman Slatman
2025-05-21 12:21:47 +02:00
parent 3367a61bcc
commit acf4387180
18 changed files with 56 additions and 50 deletions

View File

@@ -21,8 +21,8 @@ type SSHRenewRequest struct {
// Validate validates the SSHSignRequest.
func (s *SSHRenewRequest) Validate() error {
switch {
case s.OTT == "":
switch s.OTT {
case "":
return errs.BadRequest("missing or empty ott")
default:
return nil