From bf9328e2fac8c7379e129de74dc18f09c3072775 Mon Sep 17 00:00:00 2001 From: keks Date: Fri, 6 Oct 2017 21:56:46 +0200 Subject: [PATCH] remove panic that shouldn't have been there and publish 0.4.1 --- .gx/lastpubver | 2 +- chan.go | 5 +---- package.json | 2 +- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.gx/lastpubver b/.gx/lastpubver index 07da0e7..ed10e2f 100644 --- a/.gx/lastpubver +++ b/.gx/lastpubver @@ -1 +1 @@ -0.4.0: QmZCzaXTudYW8kxbXz2Up5v47Uvaww9L7WJPizPF8pADUp +0.4.1: QmPhtZyjPYddJ8yGPWreisp47H6iQjt3Lg8sZrzqMP5noy diff --git a/chan.go b/chan.go index 8e37e92..6dcd32f 100644 --- a/chan.go +++ b/chan.go @@ -113,10 +113,7 @@ type chanResponseEmitter struct { } func (re *chanResponseEmitter) SetError(v interface{}, errType cmdkit.ErrorType) { - err := re.Emit(&cmdkit.Error{Message: fmt.Sprint(v), Code: errType}) - if err != nil { - panic(err) - } + re.Emit(&cmdkit.Error{Message: fmt.Sprint(v), Code: errType}) } func (re *chanResponseEmitter) SetLength(l uint64) { diff --git a/package.json b/package.json index e6a1afa..a5521ca 100644 --- a/package.json +++ b/package.json @@ -34,6 +34,6 @@ "language": "go", "license": "MIT", "name": "go-ipfs-cmds", - "version": "0.4.0" + "version": "0.4.1" } -- GitLab