mirror of
https://github.com/outbackdingo/certificates.git
synced 2026-01-27 10:18:34 +00:00
Fix new golangci-lint v2 linter issues
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user