@cryptotaxi247 / kubo / commits / 4b78b535b

perform multiaddr conversion in the function

Brian Tiger Chow committed Jan 23, 2015 at 21:28 UTC 4b78b535b6c36c0c74c77f4304897a3e4a60850b
1 file changed +1 -2
cmd/ipfs/daemon.go
+1 -2
@@ -166,8 +166,7 @@ func daemonFunc(req cmds.Request, res cmds.Response) {
166 corehttp.WebUIOption,
167 corehttp.GatewayOption,
168 }
169 - err = corehttp.ListenAndServe(node, apiMaddr.String(), opts...)
170 - if err != nil {
169 + if err := corehttp.ListenAndServe(node, apiMaddr.String(), opts...); err != nil {
170 res.SetError(err, cmds.ErrNormal)
171 return
172 }