aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/rlpdump
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-01-21 03:22:38 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-01-21 03:22:38 +0800
commitd92fde698031758f64fcabe7af354360a93f6326 (patch)
tree5f843fe17762e0aa87a0e790d527886f2cc8eea5 /cmd/rlpdump
parent499bc404e818848e53c8c7f4f6d1bfe2349e97ae (diff)
parent87f50659db7a4bf194769b05f541d2ccf02f4fc8 (diff)
downloaddexon-d92fde698031758f64fcabe7af354360a93f6326.tar
dexon-d92fde698031758f64fcabe7af354360a93f6326.tar.gz
dexon-d92fde698031758f64fcabe7af354360a93f6326.tar.bz2
dexon-d92fde698031758f64fcabe7af354360a93f6326.tar.lz
dexon-d92fde698031758f64fcabe7af354360a93f6326.tar.xz
dexon-d92fde698031758f64fcabe7af354360a93f6326.tar.zst
dexon-d92fde698031758f64fcabe7af354360a93f6326.zip
Merge branch 'develop' into jsonrpc
Diffstat (limited to 'cmd/rlpdump')
-rw-r--r--cmd/rlpdump/main.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/cmd/rlpdump/main.go b/cmd/rlpdump/main.go
index 4c188e179..8567dcff8 100644
--- a/cmd/rlpdump/main.go
+++ b/cmd/rlpdump/main.go
@@ -14,6 +14,10 @@
You should have received a copy of the GNU General Public License
along with go-ethereum. If not, see <http://www.gnu.org/licenses/>.
*/
+/**
+ * @authors
+ * Felix Lange <felix@ethdev.com>
+ */
// rlpdump is a pretty-printer for RLP data.
package main
@@ -106,8 +110,7 @@ func dump(s *rlp.Stream, depth int) error {
s.List()
defer s.ListEnd()
if size == 0 {
- fmt.Printf(ws(depth) + "[]")
- return nil
+ fmt.Print(ws(depth) + "[]")
} else {
fmt.Println(ws(depth) + "[")
for i := 0; ; i++ {