chore(core): fix staticcheck issues (#15140)
This commit is contained in:
parent
b378be9e31
commit
79b74ff121
@ -16,7 +16,6 @@ import (
|
||||
"cosmossdk.io/core/appmodule"
|
||||
"cosmossdk.io/core/internal"
|
||||
"cosmossdk.io/core/internal/testpb"
|
||||
_ "cosmossdk.io/core/internal/testpb"
|
||||
)
|
||||
|
||||
func expectContainerErrorContains(t *testing.T, option depinject.Config, contains string) {
|
||||
|
||||
@ -20,9 +20,7 @@ func (f funcOption) apply(initializer *internal.ModuleInitializer) error {
|
||||
// documentation on the dependency injection system.
|
||||
func Provide(providers ...interface{}) Option {
|
||||
return funcOption(func(initializer *internal.ModuleInitializer) error {
|
||||
for _, provider := range providers {
|
||||
initializer.Providers = append(initializer.Providers, provider)
|
||||
}
|
||||
initializer.Providers = append(initializer.Providers, providers...)
|
||||
return nil
|
||||
})
|
||||
}
|
||||
@ -33,9 +31,7 @@ func Provide(providers ...interface{}) Option {
|
||||
// invokers impose no additional constraints on the dependency graph. Invoker functions should nil-check all inputs.
|
||||
func Invoke(invokers ...interface{}) Option {
|
||||
return funcOption(func(initializer *internal.ModuleInitializer) error {
|
||||
for _, invoker := range invokers {
|
||||
initializer.Invokers = append(initializer.Invokers, invoker)
|
||||
}
|
||||
initializer.Invokers = append(initializer.Invokers, invokers...)
|
||||
return nil
|
||||
})
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user