Skip to content

Commit b88f32a

Browse files
committed
Fixed linter errors
1 parent 4478f66 commit b88f32a

7 files changed

+14
-14
lines changed

x/pki/tests/handler_propose_paa_cert_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ func TestHandler_ProposeAddDaRootCert_CertificateAlreadyExists(t *testing.T) {
293293
require.True(t, pkitypes.ErrCertificateAlreadyExists.Is(err))
294294
}
295295

296-
//func TestHandler_ProposeAddDaRootCert_ForNocCertificate(t *testing.T) {
296+
// func TestHandler_ProposeAddDaRootCert_ForNocCertificate(t *testing.T) {
297297
// setup := utils.Setup(t)
298298
//
299299
// // propose a new root certificate
@@ -306,7 +306,7 @@ func TestHandler_ProposeAddDaRootCert_CertificateAlreadyExists(t *testing.T) {
306306
// testconstants.CertSchemaVersion)
307307
// _, err := setup.Handler(setup.Ctx, proposeAddX509RootCert)
308308
// require.True(t, pkitypes.ErrInappropriateCertificateType.Is(err))
309-
//}
309+
// }
310310

311311
func TestHandler_ProposeAddDaRootCert_ForDifferentSigner(t *testing.T) {
312312
setup := utils.Setup(t)

x/pki/tests/handler_revoke_pai_cert_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ func TestHandler_RevokeDaIntermediateCert_BySerialNumber_RevokeChild(t *testing.
293293
intermediateCertificate2 := utils.IntermediateDaCertificateWithSameSubjectAndSKID2(vendorAccAddress)
294294
utils.AddDaIntermediateCertificate(setup, intermediateCertificate2)
295295

296-
//Aad leaf certificate
296+
// Aad leaf certificate
297297
leafCertificate := utils.LeafDaCertificateWithSameSubjectAndSKID(vendorAccAddress)
298298
utils.AddDaIntermediateCertificate(setup, leafCertificate)
299299

x/pki/types/all_certificates_by_subject_key_id.pb.go

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

x/pki/types/approved_certificates_by_subject_key_id.pb.go

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

x/pki/types/genesis_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ AllCertificatesBySubjectList: []types.AllCertificatesBySubject{
218218
Subject: "1",
219219
},
220220
},
221-
AllCertificatesBySubjectKeyIdList: []types.AllCertificatesBySubjectKeyID{
221+
AllCertificatesBySubjectKeyIdList: []types.AllCertificatesBySubjectKeyId{
222222
{
223223
SubjectKeyId: "0",
224224
},
@@ -551,7 +551,7 @@ SubjectKeyID: "0",
551551
{
552552
desc: "duplicated allCertificatesBySubjectKeyId",
553553
genState: &types.GenesisState{
554-
AllCertificatesBySubjectKeyIdList: []types.AllCertificatesBySubjectKeyID{
554+
AllCertificatesBySubjectKeyIdList: []types.AllCertificatesBySubjectKeyId{
555555
{
556556
SubjectKeyId: "0",
557557
},
@@ -565,7 +565,7 @@ SubjectKeyID: "0",
565565
{
566566
desc: "duplicated allCertificatesBySubjectKeyId",
567567
genState: &types.GenesisState{
568-
AllCertificatesBySubjectKeyIdList: []types.AllCertificatesBySubjectKeyID{
568+
AllCertificatesBySubjectKeyIdList: []types.AllCertificatesBySubjectKeyId{
569569
{
570570
SubjectKeyId: "0",
571571
},

x/pki/types/key_all_certificates_by_subject_key_id.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ var _ binary.ByteOrder
66

77
const (
88
// AllCertificatesBySubjectKeyIDKeyPrefix is the prefix to retrieve all AllCertificatesBySubjectKeyId
9-
AllCertificatesBySubjectKeyIDKeyPrefix = "AllCertificatesBySubjectKeyID/value/"
9+
AllCertificatesBySubjectKeyIDKeyPrefix = "AllCertificatesBySubjectKeyId/value/"
1010
)
1111

1212
// AllCertificatesBySubjectKeyIDKey returns the store key to retrieve a AllCertificatesBySubjectKeyId from the index fields

x/pki/types/key_approved_certificates_by_subject_key_id.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ var _ binary.ByteOrder
66

77
const (
88
// ApprovedCertificatesBySubjectKeyIDKeyPrefix is the prefix to retrieve all ApprovedCertificatesBySubjectKeyId.
9-
ApprovedCertificatesBySubjectKeyIDKeyPrefix = "ApprovedCertificatesBySubjectKeyID/value/"
9+
ApprovedCertificatesBySubjectKeyIDKeyPrefix = "ApprovedCertificatesBySubjectKeyId/value/"
1010
)
1111

1212
// ApprovedCertificatesBySubjectKeyIDKey returns the store key to retrieve a ApprovedCertificatesBySubjectKeyId from the index fields.

0 commit comments

Comments
 (0)