Skip to content

Commit

Permalink
Remove redundant assignment
Browse files Browse the repository at this point in the history
Signed-off-by: ruisiang <ruisiang2000@gmail.com>
  • Loading branch information
RuiSiang authored and denyeart committed Mar 22, 2022
1 parent bb85890 commit 655a0f9
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/ca.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,8 +275,6 @@ func (ca *CA) getCACert() (cert []byte, err error) {
clientCfg.Enrollment = ca.Config.Intermediate.Enrollment
clientCfg.CAName = ca.Config.Intermediate.ParentServer.CAName
clientCfg.CSP = ca.Config.CSP
clientCfg.CSR = ca.Config.CSR
clientCfg.CSP = ca.Config.CSP
if ca.Config.CSR.CN != "" {
return nil, errors.Errorf("CN '%s' cannot be specified for an intermediate CA. Remove CN from CSR section for enrollment of intermediate CA to be successful", ca.Config.CSR.CN)
}
Expand Down

0 comments on commit 655a0f9

Please sign in to comment.