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:
Richard Wall 2021-05-04 14:30:33 +01:00
parent 1778ac67b0
commit e9be325104

View File

@ -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) {