From 00403c783935cad892121652934dd45b446e0144 Mon Sep 17 00:00:00 2001 From: Josh Rickmar Date: Fri, 11 Apr 2014 13:58:04 -0500 Subject: [PATCH] Use []Type{} instead of make([]Type, 0). --- config.go | 2 +- rpcserver.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config.go b/config.go index d1613f6..d69438e 100644 --- a/config.go +++ b/config.go @@ -85,7 +85,7 @@ func cleanAndExpandPath(path string) string { // removeDuplicateAddresses returns a new slice with all duplicate entries in // addrs removed. func removeDuplicateAddresses(addrs []string) []string { - result := make([]string, 0) + result := []string{} seen := map[string]bool{} for _, val := range addrs { if _, ok := seen[val]; !ok { diff --git a/rpcserver.go b/rpcserver.go index 9228891..49acf0d 100644 --- a/rpcserver.go +++ b/rpcserver.go @@ -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: