ci: remove duplicate gosec & lint fixes (#21685)

This commit is contained in:
Julien Robert
2024-09-12 12:30:50 +00:00
committed by GitHub
parent a77a92adf1
commit bd52dcf096
12 changed files with 44 additions and 120 deletions
+3 -4
View File
@@ -17,7 +17,6 @@ import (
ormmodulev1alpha1 "cosmossdk.io/api/cosmos/orm/module/v1alpha1"
ormv1alpha1 "cosmossdk.io/api/cosmos/orm/v1alpha1"
"cosmossdk.io/core/genesis"
"cosmossdk.io/core/store"
corestore "cosmossdk.io/core/store"
"cosmossdk.io/depinject"
"cosmossdk.io/depinject/appconfig"
@@ -361,11 +360,11 @@ type testStoreService struct {
db corestore.KVStoreWithBatch
}
func (t testStoreService) OpenKVStore(context.Context) store.KVStore {
func (t testStoreService) OpenKVStore(context.Context) corestore.KVStore {
return testkv.TestStore{Db: t.db}
}
func (t testStoreService) OpenMemoryStore(context.Context) store.KVStore {
func (t testStoreService) OpenMemoryStore(context.Context) corestore.KVStore {
return testkv.TestStore{Db: t.db}
}
@@ -395,7 +394,7 @@ func TestGetBackendResolver(t *testing.T) {
assert.NilError(t, err)
}
func ProvideTestRuntime() store.KVStoreService {
func ProvideTestRuntime() corestore.KVStoreService {
return testStoreService{db: dbm.NewMemDB()}
}