Renaming tokenRaw to accessorIDRaw to avoid confusion, as the token is not being used for revoking itself

This commit is contained in:
Nicolas Corrarello 2017-11-29 10:48:55 +00:00
parent 3134c7262d
commit e3a73ead35
No known key found for this signature in database
GPG Key ID: 6FD0D0E272A30401

View File

@ -44,8 +44,8 @@ func (b *backend) secretTokenRevoke(
return nil, err
}
tokenRaw := req.Secret.InternalData["accessor_id"]
_, err = c.ACLTokens().Delete(tokenRaw.(string), nil)
accessorIDRaw := req.Secret.InternalData["accessor_id"]
_, err = c.ACLTokens().Delete(accessorIDRaw.(string), nil)
if err != nil {
return nil, err
}