Skip to content

Commit 4c1a68e

Browse files
committed
Fixed lint S1008 in IsIntermediate()
Added an improvement in *CA.IsIntermediate()
1 parent ca2f4eb commit 4c1a68e

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

goca.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -131,12 +131,8 @@ func (c *CA) GoCRL() *pkix.CertificateList {
131131

132132
// IsIntermediate returns if the CA is Intermediate CA (true)
133133
func (c *CA) IsIntermediate() bool {
134-
if c.Data.CSR == "" {
135-
return false
134+
return c.Data.CSR != ""
136135

137-
}
138-
139-
return true
140136
}
141137

142138
// ListCertificates returns all certificates in the CA

0 commit comments

Comments
 (0)