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:
Martin Angers
2021-08-24 13:35:03 -04:00
committed by GitHub
parent a3714d2ed9
commit e61cb7e0db
43 changed files with 143 additions and 246 deletions
+1 -2
View File
@@ -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.