فهرست منبع

Standardize linting file and fix or ignore lots of linting errors

max furman 4 سال پیش
والد
کامیت
33458c88aa
1فایلهای تغییر یافته به همراه2 افزوده شده و 4 حذف شده
  1. 2 4
      authority/provisioner/claims.go

+ 2 - 4
authority/provisioner/claims.go

@@ -38,10 +38,8 @@ type Claimer struct {
 // NewClaimer initializes a new claimer with the given claims.
 // NewClaimer initializes a new claimer with the given claims.
 func NewClaimer(claims *Claims, global Claims) (*Claimer, error) {
 func NewClaimer(claims *Claims, global Claims) (*Claimer, error) {
 	c := &Claimer{global: global, claims: claims}
 	c := &Claimer{global: global, claims: claims}
-	if err := c.Validate(); err != nil {
-		return nil, err
-	}
-	return c, nil
+	err := c.Validate()
+	return c, err
 }
 }
 
 
 // Claims returns the merge of the inner and global claims.
 // Claims returns the merge of the inner and global claims.