Fix bufer spelling

This commit is contained in:
Bernd Schoolmann 2024-04-28 17:25:37 +02:00
parent 7ba5d466c5
commit 69e79980e5
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -16,11 +16,11 @@ func SetPin(useMemguard bool, pin []byte) {
func GetPin() ([]byte, error) {
approved := biometrics.CheckBiometrics(biometrics.SSHKey)
if approved {
bufer, err := cachedPin.Open()
buffer, err := cachedPin.Open()
if err != nil {
return nil, err
}
return bufer.Bytes(), nil
return buffer.Bytes(), nil
} else {
return nil, errors.New("biometrics not approved")
}