mirror of
https://github.com/outbackdingo/certificates.git
synced 2026-01-27 10:18:34 +00:00
Fix linter warnings
This commit is contained in:
@@ -226,7 +226,7 @@ func isIdentifierAllowed(acmePolicy policy.X509Policy, identifier acme.Identifie
|
||||
|
||||
func newACMEPolicyEngine(eak *acme.ExternalAccountKey) (policy.X509Policy, error) {
|
||||
if eak == nil {
|
||||
//nolint:nilnil // expected values
|
||||
//nolint:nilnil,nolintlint // expected values
|
||||
return nil, nil
|
||||
}
|
||||
return policy.NewX509PolicyEngine(eak.Policy)
|
||||
|
||||
@@ -21,7 +21,7 @@ type HostPolicy policy.SSHNamePolicyEngine
|
||||
func NewX509PolicyEngine(policyOptions X509PolicyOptionsInterface) (X509Policy, error) {
|
||||
// return early if no policy engine options to configure
|
||||
if policyOptions == nil {
|
||||
//nolint:nilnil // expected values
|
||||
//nolint:nilnil,nolintlint // expected values
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
@@ -51,7 +51,7 @@ func NewX509PolicyEngine(policyOptions X509PolicyOptionsInterface) (X509Policy,
|
||||
|
||||
// ensure no policy engine is returned when no name options were provided
|
||||
if len(options) == 0 {
|
||||
//nolint:nilnil // expected values
|
||||
//nolint:nilnil,nolintlint // expected values
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
@@ -95,7 +95,7 @@ func NewSSHHostPolicyEngine(policyOptions SSHPolicyOptionsInterface) (HostPolicy
|
||||
func newSSHPolicyEngine(policyOptions SSHPolicyOptionsInterface, typ sshPolicyEngineType) (policy.SSHNamePolicyEngine, error) {
|
||||
// return early if no policy engine options to configure
|
||||
if policyOptions == nil {
|
||||
//nolint:nilnil // expected values
|
||||
//nolint:nilnil,nolintlint // expected values
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
@@ -137,7 +137,7 @@ func newSSHPolicyEngine(policyOptions SSHPolicyOptionsInterface, typ sshPolicyEn
|
||||
|
||||
// ensure no policy engine is returned when no name options were provided
|
||||
if len(options) == 0 {
|
||||
//nolint:nilnil // expected values
|
||||
//nolint:nilnil,nolintlint // expected values
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user