*: replace interface{}
with any
keyword
Everywhere including examples, external interop APIs, bindings generators code and in other valuable places. A couple of `interface{}` usages are intentionally left in the CHANGELOG.md, documentation and tests.
This commit is contained in:
parent
83545b8451
commit
6b21ad9922
199 changed files with 1256 additions and 1231 deletions
|
@ -662,7 +662,7 @@ func initBlockChain(cfg config.Config, log *zap.Logger) (*core.Blockchain, stora
|
|||
chain, err := core.NewBlockchain(store, cfg.Blockchain(), log)
|
||||
if err != nil {
|
||||
errText := "could not initialize blockchain: %w"
|
||||
errArgs := []interface{}{err}
|
||||
errArgs := []any{err}
|
||||
closeErr := store.Close()
|
||||
if closeErr != nil {
|
||||
errText += "; failed to close the DB: %w"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue