diff --git a/core/ledger/kvledger/benchmark/experiments/conf.go b/core/ledger/kvledger/benchmark/experiments/conf.go index 8d7ee4caa88..e7c9a516278 100644 --- a/core/ledger/kvledger/benchmark/experiments/conf.go +++ b/core/ledger/kvledger/benchmark/experiments/conf.go @@ -47,12 +47,12 @@ type configuration struct { // emptyConf returns a an empty configuration (with nested structure only) func emptyConf() *configuration { - conf := &configuration{} - conf.chainMgrConf = &chainmgmt.ChainMgrConf{} - conf.batchConf = &chainmgmt.BatchConf{} - conf.txConf = &txConf{} - conf.dataConf = &dataConf{} - return conf + return &configuration{ + chainMgrConf: &chainmgmt.ChainMgrConf{}, + batchConf: &chainmgmt.BatchConf{}, + txConf: &txConf{}, + dataConf: &dataConf{}, + } } // confFromTestParams consumes the parameters passed by an experiment