@@ -19,6 +19,7 @@ import (
1919 "github.com/cloudflare/cfssl/helpers"
2020 "github.com/cloudflare/cfssl/log"
2121 ocspConfig "github.com/cloudflare/cfssl/ocsp/config"
22+
2223 // empty import of zlint/v3 required to have lints registered.
2324 _ "github.com/zmap/zlint/v3"
2425 "github.com/zmap/zlint/v3/lint"
@@ -296,7 +297,7 @@ func (p *SigningProfile) populate(cfg *Config) error {
296297
297298 if p .AuthRemote .AuthKeyName != "" {
298299 log .Debug ("match auth remote key in profile to auth_keys section" )
299- if key , ok := cfg .AuthKeys [p .AuthRemote .AuthKeyName ]; ok == true {
300+ if key , ok := cfg .AuthKeys [p .AuthRemote .AuthKeyName ]; ok {
300301 if key .Type == "standard" {
301302 p .RemoteProvider , err = auth .New (key .Key , nil )
302303 if err != nil {
@@ -441,11 +442,7 @@ func (p *Signing) NeedsRemoteSigner() bool {
441442 }
442443 }
443444
444- if p .Default .RemoteServer != "" {
445- return true
446- }
447-
448- return false
445+ return p .Default .RemoteServer != ""
449446}
450447
451448// NeedsLocalSigner returns true if one of the profiles doe not have a remote set
@@ -456,11 +453,7 @@ func (p *Signing) NeedsLocalSigner() bool {
456453 }
457454 }
458455
459- if p .Default .RemoteServer == "" {
460- return true
461- }
462-
463- return false
456+ return p .Default .RemoteServer == ""
464457}
465458
466459// Usages parses the list of key uses in the profile, translating them
@@ -559,7 +552,7 @@ func (p *SigningProfile) hasLocalConfig() bool {
559552 p .OCSP != "" ||
560553 p .ExpiryString != "" ||
561554 p .BackdateString != "" ||
562- p .CAConstraint .IsCA != false ||
555+ p .CAConstraint .IsCA ||
563556 ! p .NotBefore .IsZero () ||
564557 ! p .NotAfter .IsZero () ||
565558 p .NameWhitelistString != "" ||
0 commit comments