From a68d816007639d375d7cd859e3571101ebc314a6 Mon Sep 17 00:00:00 2001 From: Robin Lai Date: Mon, 9 Dec 2019 17:55:53 -0800 Subject: [PATCH] delete useless code. --- ledger/sample/demo.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/ledger/sample/demo.go b/ledger/sample/demo.go index 9796d90..1bcef98 100644 --- a/ledger/sample/demo.go +++ b/ledger/sample/demo.go @@ -79,7 +79,4 @@ func main() { if err != nil { log.Panic("fail to close channel", zap.Error(err)) } - if err != nil { - log.Panic(err.Error()) - } }