Fix Goland code inspection warnings
This commit is contained in:
parent
79cb5c96bf
commit
474e7717cc
3 changed files with 4 additions and 4 deletions
|
@ -46,7 +46,7 @@ func main() {
|
||||||
|
|
||||||
log.Printf("cacert-gosigner %s (%s) - built %s\n", version, commit, date)
|
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(&showVersion, "version", false, "show version")
|
||||||
flag.BoolVar(&setupMode, "setup", false, "setup mode")
|
flag.BoolVar(&setupMode, "setup", false, "setup mode")
|
||||||
flag.BoolVar(&verbose, "verbose", false, "verbose output")
|
flag.BoolVar(&verbose, "verbose", false, "verbose output")
|
||||||
|
|
|
@ -67,7 +67,7 @@ CAs:
|
||||||
# parent CA, must be any of the other defined CAs
|
# parent CA, must be any of the other defined CAs
|
||||||
parent: "ecc_root_2022"
|
parent: "ecc_root_2022"
|
||||||
common-name: "CAcert ECC Person CA 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
|
# - client for client authentication
|
||||||
# - code for code signing
|
# - code for code signing
|
||||||
|
|
|
@ -86,7 +86,7 @@ func (*brokenRepo) StoreRevocation(_ *pkix.RevokedCertificate) error {
|
||||||
type brokenRepoNoCrlNumber struct {
|
type brokenRepoNoCrlNumber struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (b brokenRepoNoCrlNumber) StoreRevocation(certificate *pkix.RevokedCertificate) error {
|
func (b brokenRepoNoCrlNumber) StoreRevocation(_ *pkix.RevokedCertificate) error {
|
||||||
// do nothing
|
// do nothing
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
@ -102,7 +102,7 @@ func (b brokenRepoNoCrlNumber) NextCRLNumber() (*big.Int, error) {
|
||||||
type brokenRepoNoRevocations struct {
|
type brokenRepoNoRevocations struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (b brokenRepoNoRevocations) StoreRevocation(certificate *pkix.RevokedCertificate) error {
|
func (b brokenRepoNoRevocations) StoreRevocation(_ *pkix.RevokedCertificate) error {
|
||||||
// do nothing
|
// do nothing
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue