mirror of
https://github.com/smallstep/certificates.git
synced 2024-10-31 03:20:16 +00:00
Update authority/provisioner/claims.go
Co-authored-by: Mariano Cano <mariano@smallstep.com>
This commit is contained in:
parent
ab0d2503ae
commit
2de7d3fcf0
@ -38,8 +38,10 @@ type Claimer struct {
|
||||
// NewClaimer initializes a new claimer with the given claims.
|
||||
func NewClaimer(claims *Claims, global Claims) (*Claimer, error) {
|
||||
c := &Claimer{global: global, claims: claims}
|
||||
err := c.Validate()
|
||||
return c, err
|
||||
if err := c.Validate(); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return c, nil
|
||||
}
|
||||
|
||||
// Claims returns the merge of the inner and global claims.
|
||||
|
Loading…
Reference in New Issue
Block a user