zrhoffman commented on a change in pull request #4625: updated to store Lets 
Encrypt user account information
URL: https://github.com/apache/trafficcontrol/pull/4625#discussion_r409898382
 
 

 ##########
 File path: traffic_ops/traffic_ops_golang/deliveryservice/letsencryptcert.go
 ##########
 @@ -330,7 +374,86 @@ func GetLetsEncryptCertificates(cfg *config.Config, req 
tc.DeliveryServiceLetsEn
        }
        tx2.Commit()
 
+       if !foundPreviousAccount {
 
 Review comment:
   The `!foundPreviousAccount` is must larger than the `foundPreviousAccount`. 
Consider instead checking for `foundPreviousAccount`, putting a 
`api.CreateChangeLogRawTx()` and `return` in there. Then the whole 
`foundPreviousAccount` case could be unindented.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to