Skip to content

Commit

Permalink
[FABC-710] Omit duplicate if statement
Browse files Browse the repository at this point in the history
Omit duplicate if statement
which has same condition of previous one.

Change-Id: I5713fe32ee0e628acb2ba27ee7c3e2731b6e5153
Signed-off-by: Daisuke IIZUKA <daisuke.iizuka.ag@hitachi.com>
  • Loading branch information
Daisuke IIZUKA committed Aug 29, 2018
1 parent 54f3bcf commit b6196b1
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/ca.go
Original file line number Diff line number Diff line change
Expand Up @@ -440,9 +440,6 @@ func (ca *CA) initConfig() (err error) {
if cfg.CA.Chainfile == "" {
cfg.CA.Chainfile = "ca-chain.pem"
}
if cfg.CA.Chainfile == "" {
cfg.CA.Chainfile = "ca-chain.pem"
}
if cfg.CSR.CA == nil {
cfg.CSR.CA = &cfcsr.CAConfig{}
}
Expand Down

0 comments on commit b6196b1

Please sign in to comment.