Configure golangci-lint for the whole repository
Add a relatively minimal set of linters that raise safe and mostly un-opinionated issues with the code. It runs automatically on CI via a github action.
This commit is contained in:
@@ -34,9 +34,8 @@ func loadPublicKey() (*ecdsa.PublicKey, error) {
|
||||
|
||||
if pub, ok := pub.(*ecdsa.PublicKey); ok {
|
||||
return pub, nil
|
||||
} else {
|
||||
return nil, errors.Errorf("%T is not *ecdsa.PublicKey", pub)
|
||||
}
|
||||
return nil, errors.Errorf("%T is not *ecdsa.PublicKey", pub)
|
||||
}
|
||||
|
||||
// LoadLicense loads and validates the license key.
|
||||
|
||||
Reference in New Issue
Block a user