Skip to content

Commit ea03072

Browse files
committed
Fix dead code and add missing error check.
1 parent d574545 commit ea03072

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

authority/authority.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ func New(config *Config) (*Authority, error) {
4545
var sorted provisionerSlice
4646
if config.AuthorityConfig != nil {
4747
sorted, err = newSortedProvisioners(config.AuthorityConfig.Provisioners)
48+
if err != nil {
49+
return nil, err
50+
}
4851
}
4952

5053
// Define audiences: legacy + possible urls

authority/provisioner.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,6 @@ import (
99
jose "gopkg.in/square/go-jose.v2"
1010
)
1111

12-
// baseClaims interface.
13-
type baseClaims struct {
14-
MinTLSDur *duration `json:"minTLSCertDuration,omitempty"`
15-
MaxTLSDur *duration `json:"maxTLSCertDuration,omitempty"`
16-
DefaultTLSDur *duration `json:"defaultTLSCertDuration,omitempty"`
17-
}
18-
1912
// ProvisionerClaims so that individual provisioners can override global claims.
2013
type ProvisionerClaims struct {
2114
globalClaims *ProvisionerClaims

0 commit comments

Comments
 (0)