Fix Goland code inspection warnings

This commit is contained in:
Jan Dittberner 2022-04-24 14:49:17 +02:00 committed by Jan Dittberner
parent 79cb5c96bf
commit 474e7717cc
3 changed files with 4 additions and 4 deletions

View file

@ -46,7 +46,7 @@ func main() {
log.Printf("cacert-gosigner %s (%s) - built %s\n", version, commit, date)
flag.StringVar(&signerConfigFile, "caconfig", defaultSignerConfigFile, "signer configuration file")
flag.StringVar(&signerConfigFile, "config", defaultSignerConfigFile, "signer configuration file")
flag.BoolVar(&showVersion, "version", false, "show version")
flag.BoolVar(&setupMode, "setup", false, "setup mode")
flag.BoolVar(&verbose, "verbose", false, "verbose output")

View file

@ -67,7 +67,7 @@ CAs:
# parent CA, must be any of the other defined CAs
parent: "ecc_root_2022"
common-name: "CAcert ECC Person CA 2022"
# extended key usage, only makes sense for non root CAs, supported values are
# extended key usage, only makes sense for non-root CAs, supported values are
#
# - client for client authentication
# - code for code signing

View file

@ -86,7 +86,7 @@ func (*brokenRepo) StoreRevocation(_ *pkix.RevokedCertificate) error {
type brokenRepoNoCrlNumber struct {
}
func (b brokenRepoNoCrlNumber) StoreRevocation(certificate *pkix.RevokedCertificate) error {
func (b brokenRepoNoCrlNumber) StoreRevocation(_ *pkix.RevokedCertificate) error {
// do nothing
return nil
}
@ -102,7 +102,7 @@ func (b brokenRepoNoCrlNumber) NextCRLNumber() (*big.Int, error) {
type brokenRepoNoRevocations struct {
}
func (b brokenRepoNoRevocations) StoreRevocation(certificate *pkix.RevokedCertificate) error {
func (b brokenRepoNoRevocations) StoreRevocation(_ *pkix.RevokedCertificate) error {
// do nothing
return nil
}