Simplify the return statement
pkg/issuer/acme/dns/dns.go:164:2: should use 'return strategy == cmacme.FollowStrategy' instead of 'if strategy == cmacme.FollowStrategy { return true }; return false' (S1008)
Signed-off-by: Richard Wall <richard.wall@jetstack.io>
This commit is contained in:
parent
1778ac67b0
commit
e9be325104
@ -161,10 +161,7 @@ func (s *Solver) CleanUp(ctx context.Context, issuer v1.GenericIssuer, ch *cmacm
|
||||
}
|
||||
|
||||
func followCNAME(strategy cmacme.CNAMEStrategy) bool {
|
||||
if strategy == cmacme.FollowStrategy {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
return strategy == cmacme.FollowStrategy
|
||||
}
|
||||
|
||||
func extractChallengeSolverConfig(ch *cmacme.Challenge) (*cmacme.ACMEChallengeSolverDNS01, error) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user