Use []Type{} instead of make([]Type, 0).

This commit is contained in:
Josh Rickmar 2014-04-11 13:58:04 -05:00
parent 9cfa95d269
commit 00403c7839
2 changed files with 2 additions and 2 deletions

View file

@ -958,7 +958,7 @@ func GetTransaction(icmd btcjson.Cmd) (interface{}, *btcjson.Error) {
Details: []btcjson.GetTransactionDetailsResult{},
WalletConflicts: []string{},
}
details := make([]btcjson.GetTransactionDetailsResult, 0)
details := []btcjson.GetTransactionDetailsResult{}
for _, e := range accumulatedTxen {
switch record := e.Tx.(type) {
case *tx.RecvTxOut: