linter fixes.

This commit is contained in:
2025-11-16 18:39:18 -08:00
parent 0dcd18c6f1
commit c999bf35b0
4 changed files with 10 additions and 9 deletions

6
otp.go
View File

@@ -75,10 +75,10 @@ func FromURL(URL string) (OTP, string, error) {
return nil, "", ErrInvalidURL
}
switch {
case u.Host == "totp":
switch u.Host {
case "totp":
return totpFromURL(u)
case u.Host == "hotp":
case "hotp":
return hotpFromURL(u)
default:
return nil, "", ErrInvalidURL