mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-08 23:28:39 +03:00
printf: replace %#v with the more explicit %q
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -66,7 +66,7 @@ func (c *TOTPConfig) validate() error {
|
||||
case TOTPAlgoSHA512:
|
||||
c.algo = otp.AlgorithmSHA512
|
||||
default:
|
||||
return fmt.Errorf("unsupported totp algo %#v", c.Algo)
|
||||
return fmt.Errorf("unsupported totp algo %q", c.Algo)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user